diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 05:18:38 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 05:18:38 +0000 |
commit | da665b0234c7d6eb935f8ccd4ced84bcbf197dcf (patch) | |
tree | 1d45683a8fb59ef25e786f356f8f59850c8a1ae5 /ext | |
parent | 08c8f7319559d9a86b89270d4494325ae6c8e539 (diff) | |
download | ruby-da665b0234c7d6eb935f8ccd4ced84bcbf197dcf.tar.gz |
Remove redundant calls of String#chr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pty/lib/expect.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pty/lib/expect.rb b/ext/pty/lib/expect.rb index eaa6ccac94..1729482e04 100644 --- a/ext/pty/lib/expect.rb +++ b/ext/pty/lib/expect.rb @@ -43,13 +43,13 @@ class IO @unusedBuf ||= '' while true if not @unusedBuf.empty? - c = @unusedBuf.slice!(0).chr + c = @unusedBuf.slice!(0) elsif !IO.select([self],nil,nil,timeout) or eof? then result = nil @unusedBuf = buf break else - c = getc.chr + c = getc end buf << c if $expect_verbose |