Skip to content

Commit

Permalink
fix: #2432 replace == None by is None
Browse files Browse the repository at this point in the history
  • Loading branch information
lowk3v committed Apr 18, 2024
1 parent 84ea7c2 commit 9d2a835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/utils/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def _output_result_to_sarif(
risk = "3.0"

detector_class = next((d for d in detectors_classes if d.ARGUMENT == detector["check"]), None)
if detector_class == None:
if detector_class is None:
logger.info(yellow(f"Detector {detector['check']} not found in the detectors classes"))
return

check_id = (
str(detector_class.IMPACT.value)
+ "-"
Expand Down

0 comments on commit 9d2a835

Please sign in to comment.