Skip to content

Commit fce196c

Browse files
author
Robert Mosolgo
authored
Merge pull request #1278 from rmosolgo/fix-no-typed-children
NoTypedChildren should return a Hash, not Array
2 parents 005864f + 7e15581 commit fce196c

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)