Skip to content

Commit

Permalink
Return early exit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Privat33r-dev committed Aug 10, 2024
1 parent 0c0137c commit eaa7aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clairvoyance/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def __extract_matching_fields(
name = (
name.rstrip("Input") + "Input"
) # Make sure `Input` is always once at the end
else:
log().debug(f"Unknown kind for `typeref`: '{error_message}'")
return None

is_list = bool("[" in tk and "]" in tk)
non_null_item = bool(is_list and "!]" in tk)
Expand Down

0 comments on commit eaa7aa1

Please sign in to comment.