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@63336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
306e1e8163
commit
b4d935455f
1 changed files with 4 additions and 4 deletions
|
@ -406,8 +406,8 @@ class CGI
|
|||
@hash[CGI::unescape(k)] = Marshal.restore(CGI::unescape(v))
|
||||
end
|
||||
ensure
|
||||
f.close unless f.nil?
|
||||
lockf.close if lockf
|
||||
f&.close
|
||||
lockf&.close
|
||||
end
|
||||
end
|
||||
@hash
|
||||
|
@ -426,8 +426,8 @@ class CGI
|
|||
f.close
|
||||
File.rename @path+".new", @path
|
||||
ensure
|
||||
f.close if f
|
||||
lockf.close if lockf
|
||||
f&.close
|
||||
lockf&.close
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue