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@63394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd97ca443f
commit
0f4b4684cc
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ class TestSyntax < Test::Unit::TestCase
|
|||
assert_raise(ArgumentError, enc.name) {load(f.path)}
|
||||
end
|
||||
ensure
|
||||
f.close! if f
|
||||
f&.close!
|
||||
end
|
||||
|
||||
def test_script_lines
|
||||
|
@ -63,7 +63,7 @@ class TestSyntax < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
ensure
|
||||
f.close! if f
|
||||
f&.close!
|
||||
end
|
||||
|
||||
def test_newline_in_block_parameters
|
||||
|
|
Loading…
Add table
Reference in a new issue