mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warning
* lib/test/unit.rb (terminal_width): suppress uninitialized instance variable warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
191f473419
commit
cf06ed4f52
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ module Test
|
|||
end
|
||||
|
||||
def terminal_width
|
||||
unless @terminal_width
|
||||
unless @terminal_width ||= nil
|
||||
begin
|
||||
require 'io/console'
|
||||
width = $stdout.winsize[1]
|
||||
|
|
Loading…
Add table
Reference in a new issue