1
0
Fork 0
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:
kazu 2018-05-11 12:12:57 +00:00
parent bd97ca443f
commit 0f4b4684cc

View file

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