ruby-changes:47484
From: naruse <ko1@a...>
Date: Tue, 15 Aug 2017 22:05:24 +0900 (JST)
Subject: [ruby-changes:47484] naruse:r59599 (trunk): suppress warning: assigned but unused variable - line
naruse 2017-08-15 22:05:18 +0900 (Tue, 15 Aug 2017) New Revision: 59599 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59599 Log: suppress warning: assigned but unused variable - line Modified files: trunk/test/readline/test_readline.rb Index: test/readline/test_readline.rb =================================================================== --- test/readline/test_readline.rb (revision 59598) +++ test/readline/test_readline.rb (revision 59599) @@ -83,7 +83,7 @@ class TestReadline < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L83 stdin.write("first second\t") stdin.flush Readline.completion_append_character = " " - line = replace_stdio(stdin.path, stdout.path) { + replace_stdio(stdin.path, stdout.path) { Readline.readline("> ", false) } assert_equal("second", actual_text) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/