Skip to content

Commit

Permalink
Remove redundant NullValue in ObjectScalar parseLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
dondonz committed Aug 27, 2022
1 parent 313b221 commit 82a5276
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/java/graphql/scalars/object/ObjectScalar.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public Object parseLiteral(Object input, Map<String, Object> variables) throws C
"Expected AST type 'Value' but was '" + typeName(input) + "'."
);
}
if (input instanceof NullValue) {
return null;
}
if (input instanceof FloatValue) {
return ((FloatValue) input).getValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class ObjectScalarTest extends Specification {
mkIntValue(666) | 666
mkBooleanValue(true) | true
mkEnumValue("enum") | "enum"
mkNullValue() | null
mkVarRef("varRef1") | "value1"
mkArrayValue([
mkStringValue("s"), mkIntValue(666)
Expand Down

0 comments on commit 82a5276

Please sign in to comment.