Skip to content

Commit 2463bb3

Browse files
committed
reformat condition for better tracing
1 parent 7913a58 commit 2463bb3

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

lib/graphql/execution/field_resolve_step.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,14 @@ def build_graphql_result(graphql_result, key, field_result, return_type, is_nn,
506506
build_graphql_result(list_result, i, inner_f_r, inner_type, inner_type_nn, inner_type_l, true)
507507
i += 1
508508
end
509-
elsif @runner.resolves_lazies || (@runner.authorization && (@static_type.kind.object? ? @runner.authorizes?(@static_type, @selections_step.query.context) : (
510-
(runtime_type = (@runner.runtime_type_at[graphql_result] = @runner.resolve_type(@static_type, field_result, @selections_step.query))
511-
) && @runner.authorizes?(runtime_type, @selections_step.query.context)
512-
)))
509+
elsif @runner.resolves_lazies || (
510+
@runner.authorization && (
511+
@static_type.kind.object? ?
512+
@runner.authorizes?(@static_type, @selections_step.query.context) :
513+
(
514+
(runtime_type = (@runner.runtime_type_at[graphql_result] = @runner.resolve_type(@static_type, field_result, @selections_step.query))) &&
515+
@runner.authorizes?(runtime_type, @selections_step.query.context)
516+
)))
513517
obj_step = PrepareObjectStep.new(
514518
object: field_result,
515519
runner: @runner,

0 commit comments

Comments
 (0)