We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 005864f + 7e15581 commit fce196cCopy full SHA for fce196c
1 file changed
lib/graphql/internal_representation/node.rb
@@ -6,7 +6,7 @@ class Node
6
DEFAULT_TYPED_CHILDREN = Proc.new { |h, k| h[k] = {} }
7
8
# A specialized, reusable object for leaf nodes.
9
- NO_TYPED_CHILDREN = Hash.new([].freeze)
+ NO_TYPED_CHILDREN = Hash.new({}.freeze)
10
def NO_TYPED_CHILDREN.dup; self; end;
11
NO_TYPED_CHILDREN.freeze
12
0 commit comments