Skip to content

Commit ea25494

Browse files
committed
Replaced lambda with method reference
1 parent da74bbf commit ea25494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/servlet/GraphQLObjectMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public Map<String, Object> convertSanitizedExecutionResult(ExecutionResult execu
130130
final Map<String, Object> result = new LinkedHashMap<>();
131131

132132
if (areErrorsPresent(executionResult)) {
133-
result.put("errors", executionResult.getErrors().stream().map(err->err.toSpecification()).collect(toList()));
133+
result.put("errors", executionResult.getErrors().stream().map(GraphQLError::toSpecification).collect(toList()));
134134
}
135135

136136
if (executionResult.getExtensions() != null && !executionResult.getExtensions().isEmpty()) {

0 commit comments

Comments
 (0)