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@63638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-06-12 14:36:30 +00:00
parent 55539f9bb8
commit ed2987cb62

View file

@ -18,8 +18,8 @@ class TestPTY < Test::Unit::TestCase
else
assert_equal("a\r\n", r.gets)
ensure
r.close if r
w.close if w
r&.close
w&.close
Process.wait pid if pid
end
@ -239,4 +239,3 @@ class TestPTY < Test::Unit::TestCase
skip $!
end
end if defined? PTY