mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use &.
instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b920d9545c
commit
a53fe773d6
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ class Resolv
|
|||
def close
|
||||
socks = @socks
|
||||
@socks = nil
|
||||
socks.each(&:close) if socks
|
||||
socks&.each(&:close)
|
||||
end
|
||||
|
||||
class Sender # :nodoc:
|
||||
|
|
Loading…
Add table
Reference in a new issue