Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit dd6ce66

Browse files
committed
Fix data loader customer example
1 parent 89ed1d7 commit dd6ce66

File tree

1 file changed

+1
-1
lines changed
  • example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/schema

1 file changed

+1
-1
lines changed

example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/schema/TodoSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public TodoObjectType getTodo(String id) {
106106
return todos.stream()
107107
.filter(todo -> todo.getId(todo).equals(id))
108108
.findFirst()
109-
.orElseThrow(() -> throw IllegalStateException("No todo found with id " + id));
109+
.orElseThrow(() -> new IllegalStateException("No todo found with id " + id));
110110
}
111111

112112
public List<TodoObjectType> getTodos(List<String> ids) {

0 commit comments

Comments
 (0)