We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec9c8b commit 068ac64Copy full SHA for 068ac64
lib/graphql/schema/resolver.rb
@@ -383,14 +383,15 @@ def extensions
383
own_exts = @own_extensions
384
# Jump through some hoops to avoid creating arrays when we don't actually need them
385
if superclass.respond_to?(:extensions)
386
+ s_exts = superclass.extensions
387
if own_exts
- if (s_exts = superclass.extensions).any?
388
- own_exts + superclass.extensions
+ if s_exts.any?
389
+ own_exts + s_exts
390
else
391
own_exts
392
end
393
- superclass.extensions
394
+ s_exts
395
396
397
own_exts || EMPTY_ARRAY
0 commit comments