Skip to content

Commit

Permalink
[rubygems/rubygems] Use Hash#compact
Browse files Browse the repository at this point in the history
rubygems/rubygems@9d4ff6ff30

Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
  • Loading branch information
2 people authored and matzbot committed Feb 21, 2024
1 parent c8fb4f3 commit fc1a7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/psych_tree.rb
Expand Up @@ -15,7 +15,7 @@ def visit_String(str)
end

def visit_Hash(o)
super(o.dup.delete_if {|_, v| v.nil? })
super(o.compact)
end

# Noop this out so there are no anchors
Expand Down

0 comments on commit fc1a7a4

Please sign in to comment.