mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[rubygems/rubygems] Use Hash#compact
9d4ff6ff30
Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
This commit is contained in:
parent
c8fb4f308b
commit
fc1a7a46dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue