Skip to content

Commit 9cd9402

Browse files
committed
Fix logic error
1 parent 71c388b commit 9cd9402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/core/validation/rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ def same_value(value1, value2):
865865
def same_arguments(cls, arguments1, arguments2):
866866
# Check to see if they are empty arguments or nones. If they are, we can
867867
# bail out early.
868-
if not (arguments1 and arguments2):
868+
if not (arguments1 or arguments2):
869869
return True
870870

871871
if len(arguments1) != len(arguments2):
@@ -887,7 +887,7 @@ def same_arguments(cls, arguments1, arguments2):
887887
def same_directives(cls, directives1, directives2):
888888
# Check to see if they are empty directives or nones. If they are, we can
889889
# bail out early.
890-
if not (directives1 and directives2):
890+
if not (directives1 or directives2):
891891
return True
892892

893893
if len(directives1) != len(directives2):

0 commit comments

Comments
 (0)