Skip to content

Commit c71d414

Browse files
committed
Remove incorrect nil check, fix syntax for old ruby
1 parent 43edf31 commit c71d414

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

lib/graphql/execution/next/finalize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def check_object_result(result_h, parent_type, ast_selections, current_exec_path
5454
current_exec_path << key
5555
current_result_path << key
5656

57-
result_value = result_h[key] || raise("Invariant: No result_h for #{current_exec_path} (#{result_h})")
57+
result_value = result_h[key]
5858
field_defn = @query.context.types.field(parent_type, ast_selection.name) || raise("Invariant: No field found for #{static_type.to_type_signature}.#{ast_selection.name}")
5959
result_type = field_defn.type
6060
if (result_type_non_null = result_type.non_null?)
File renamed without changes.

spec/graphql/schema/directive_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def lazy_thing(context, ast_node:)
213213
field :dataloaded_thing, Thing, null: false, extras: [:ast_node], resolve_static: true
214214

215215
def dataloaded_thing(ast_node:)
216-
self.class.dataloaded_thing(context, ast_node:)
216+
self.class.dataloaded_thing(context, ast_node: ast_node)
217217
end
218218

219219
resolver_methods do

0 commit comments

Comments
 (0)