Skip to content

Commit 0409bad

Browse files
ors-woonbbakerman
authored andcommitted
Change operationName condition (2)
I convert "".equals to string.isEmpty()
1 parent 5b9dd5b commit 0409bad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/graphql/language/NodeUtil.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static GetOperationResult getOperation(Document document, String operatio
7777
}
7878
OperationDefinition operation;
7979

80-
if (operationName == null || "".equals(operationName)) {
80+
if (operationName == null || operationName.isEmpty()) {
8181
operation = operationsByName.values().iterator().next();
8282
} else {
8383
operation = operationsByName.get(operationName);

0 commit comments

Comments
 (0)