Skip to content

Commit

Permalink
Merge pull request #298 from AikidoSec/AIK-4298
Browse files Browse the repository at this point in the history
Fix SyntaxWarning by replacing "is" with "=="
  • Loading branch information
willem-delbare authored Jan 23, 2025
2 parents 9cb3628 + 360d735 commit 9837515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aikido_zen/api_discovery/merge_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def merge_types(first, second):
first_primitive = only_contains_primitive_types(first["type"])
second_primitive = only_contains_primitive_types(second["type"])
if not first_primitive or not second_primitive:
if first["type"] is "null": # Prefer non-null type
if first["type"] == "null": # Prefer non-null type
return second
return first
first["type"] = merge_type_arrays(first["type"], second["type"])
Expand Down

0 comments on commit 9837515

Please sign in to comment.