Skip to content

Commit

Permalink
Invert logic to satisfy RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
arutkowski00 committed Nov 20, 2024
1 parent 4a497b8 commit a59c8e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def merge_directives(node, type)
end

def directive_name(directive)
if schema.federation_2? && !schema.all_links.any? { |link| link[:import]&.include?(directive[:name]) }
if schema.federation_2? && schema.all_links.none? { |link| link[:import]&.include?(directive[:name]) }
"#{schema.default_link_namespace}__#{directive[:name]}"
else
directive[:name]
Expand Down

0 comments on commit a59c8e0

Please sign in to comment.