summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2017-06-15 11:00:26 +0900
committerTomoyuki Sahara <[email protected]>2017-06-15 11:00:26 +0900
commit04774e5bf26b10150504635e68202a3965e2253b (patch)
tree0a6f929843b409efce6dd9d2c09996bcbc0c0baa
parent7c62d89348e4fb4258e177bb434582edd18ffdd4 (diff)
downloadmruby-04774e5bf26b10150504635e68202a3965e2253b.tar.gz
mruby-04774e5bf26b10150504635e68202a3965e2253b.zip
remove unused exception variables.
-rw-r--r--mrblib/io.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/mrblib/io.rb b/mrblib/io.rb
index f538af490..02c8141c5 100644
--- a/mrblib/io.rb
+++ b/mrblib/io.rb
@@ -200,7 +200,7 @@ class IO
while 1
begin
_read_buf
- rescue EOFError => e
+ rescue EOFError
array = nil if array.empty? and (not length.nil?) and length != 0
break
end
@@ -248,7 +248,7 @@ class IO
while 1
begin
_read_buf
- rescue EOFError => e
+ rescue EOFError
array = nil if array.empty?
break
end
@@ -276,7 +276,7 @@ class IO
def gets(*args)
begin
readline(*args)
- rescue EOFError => e
+ rescue EOFError
nil
end
end
@@ -291,7 +291,7 @@ class IO
def getc
begin
readchar
- rescue EOFError => e
+ rescue EOFError
nil
end
end