[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:
Hiroshi SHIBATA 2024-02-21 14:27:58 +09:00 committed by git
parent c8fb4f308b
commit fc1a7a46dc

View File

@ -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