[rubygems/rubygems] Use Hash#compact
https://github.com/rubygems/rubygems/commit/9d4ff6ff30 Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
This commit is contained in:
parent
c8fb4f308b
commit
fc1a7a46dc
@ -15,7 +15,7 @@ module Gem
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user