mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove unused variables
This fixes following warning: ``` test/logger/test_logger.rb:329: warning: assigned but unused variable - read_read ``` [Fix GH-1840] From: yuuji.yaginuma <yuuji.yaginuma@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
38abd83529
commit
f5fc032eee
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ class TestLogger < Test::Unit::TestCase
|
|||
r, w = IO.pipe
|
||||
logger = Logger.new(w)
|
||||
logger << "msg"
|
||||
read_ready, = IO.select([r], nil, nil, 0.1)
|
||||
IO.select([r], nil, nil, 0.1)
|
||||
w.close
|
||||
msg = r.read
|
||||
r.close
|
||||
|
@ -335,7 +335,7 @@ class TestLogger < Test::Unit::TestCase
|
|||
r, w = IO.pipe
|
||||
logger = Logger.new(w)
|
||||
logger << "msg2\n\n"
|
||||
read_ready, = IO.select([r], nil, nil, 0.1)
|
||||
IO.select([r], nil, nil, 0.1)
|
||||
w.close
|
||||
msg = r.read
|
||||
r.close
|
||||
|
|
Loading…
Reference in a new issue