diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-20 06:19:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-20 06:19:05 +0000 |
commit | 935f8255922a78d5e96deeef1ce3c5258088bc54 (patch) | |
tree | 703fb67e1f29b491d99c05bb600ec694a8528c71 /ext/rubyvm/lib/forwardable/impl.rb | |
parent | 2283d14cc9fefa278dfde02bdf8d84ce50cfe16f (diff) | |
download | ruby-935f8255922a78d5e96deeef1ce3c5258088bc54.tar.gz |
get rid of test failures introduced at r56848
* ext/rubyvm/lib/forwardable/impl.rb: remove an unused variable definition to
get rid of a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/rubyvm/lib/forwardable/impl.rb')
-rw-r--r-- | ext/rubyvm/lib/forwardable/impl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/rubyvm/lib/forwardable/impl.rb b/ext/rubyvm/lib/forwardable/impl.rb index ddf732156a..e9ada26e74 100644 --- a/ext/rubyvm/lib/forwardable/impl.rb +++ b/ext/rubyvm/lib/forwardable/impl.rb @@ -4,7 +4,7 @@ module Forwardable def self._valid_method?(method) iseq = RubyVM::InstructionSequence.compile("().#{method}", nil, nil, 0, false) - rescue SyntaxError => e + rescue SyntaxError false else iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym |