From da665b0234c7d6eb935f8ccd4ced84bcbf197dcf Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 21 Oct 2017 05:18:38 +0000 Subject: Remove redundant calls of String#chr git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/lib/expect.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pty/lib') 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 -- cgit v1.2.3