Skip to content

Commit 5b55a08

Browse files
authored
Merge pull request #71 from dondonz/fix-up-ObjectScalar
Remove redundant NullValue case in ObjectScalar parseLiteral
2 parents 313b221 + 82a5276 commit 5b55a08

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/main/java/graphql/scalars/object/ObjectScalar.java

-3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ public Object parseLiteral(Object input, Map<String, Object> variables) throws C
6565
"Expected AST type 'Value' but was '" + typeName(input) + "'."
6666
);
6767
}
68-
if (input instanceof NullValue) {
69-
return null;
70-
}
7168
if (input instanceof FloatValue) {
7269
return ((FloatValue) input).getValue();
7370
}

src/test/groovy/graphql/scalars/object/ObjectScalarTest.groovy

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class ObjectScalarTest extends Specification {
3737
mkIntValue(666) | 666
3838
mkBooleanValue(true) | true
3939
mkEnumValue("enum") | "enum"
40-
mkNullValue() | null
4140
mkVarRef("varRef1") | "value1"
4241
mkArrayValue([
4342
mkStringValue("s"), mkIntValue(666)

0 commit comments

Comments
 (0)