Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
tjeerddie committed Jul 7, 2023
1 parent 4758256 commit 003b672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchestrator/graphql/resolvers/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def has_field_name(selection: Selection, field_name: str) -> bool:

if not page_field:
return selected_field.selections
return one(page_field).selections if page_field else []
return one(page_field).selections

def has_details(selection: Selection) -> bool:
if isinstance(selection, SelectedField):
Expand Down

0 comments on commit 003b672

Please sign in to comment.