lib/graphql/tracing/platform_tracing.rb in graphql-1.10.0.pre1 vs lib/graphql/tracing/platform_tracing.rb in graphql-1.10.0.pre2
- old
+ new
@@ -37,11 +37,10 @@
platform_key = platform_key_cache.fetch(field) do
platform_key_cache[field] = platform_field_key(data[:owner], field)
end
return_type = field.type.unwrap
- # Handle LateBoundTypes, which don't have `#kind`
- trace_field = if return_type.respond_to?(:kind) && (return_type.kind.scalar? || return_type.kind.enum?)
+ trace_field = if return_type.kind.scalar? || return_type.kind.enum?
(field.trace.nil? && @trace_scalars) || field.trace
else
true
end
end