Skip to content

Commit 7e15581

Browse files
committed
NoTypedChildren should return a Hash, not Array
1 parent 005864f commit 7e15581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/graphql/internal_representation

lib/graphql/internal_representation/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Node
66
DEFAULT_TYPED_CHILDREN = Proc.new { |h, k| h[k] = {} }
77

88
# A specialized, reusable object for leaf nodes.
9-
NO_TYPED_CHILDREN = Hash.new([].freeze)
9+
NO_TYPED_CHILDREN = Hash.new({}.freeze)
1010
def NO_TYPED_CHILDREN.dup; self; end;
1111
NO_TYPED_CHILDREN.freeze
1212

0 commit comments

Comments
 (0)