Skip to content

Commit 4dfd8f9

Browse files
committed
Removed default value from hash initialization.
2 parents a17f397 + 37ec850 commit 4dfd8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json/ld/frame.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def cleanup_preserve(input)
157157
# If, after replacement, an array contains only the value null remove the value, leaving an empty array.
158158
input.map {|o| cleanup_preserve(o)}.compact
159159
when Hash
160-
output = Hash.new(input.size)
160+
output = Hash.new
161161
input.each do |key, value|
162162
if key == '@preserve'
163163
# replace all key-value pairs where the key is @preserve with the value from the key-pair

0 commit comments

Comments
 (0)