diff options
author | John Mair <jrmair@gmail.com> | 2013-05-10 14:02:12 -0700 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2013-05-10 14:02:12 -0700 |
commit | e6b7a06d54e2d41e6cb19d029f8abd9d66f94c1e (patch) | |
tree | 612a16f79ecc4a3d22914c7351e7cf8db80b6b86 | |
parent | f300a4f3e8303b7d11e010897e2dd6c7c9aef7ae (diff) | |
parent | d7e2d31b74055f058805cfdc5e6d6d0486dbf51a (diff) | |
download | method_source-e6b7a06d54e2d41e6cb19d029f8abd9d66f94c1e.tar.gz |
Merge pull request #21 from jacknagel/patch-1
Fix 'assigned but unused variable' warning
-rw-r--r-- | lib/method_source/code_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/method_source/code_helpers.rb b/lib/method_source/code_helpers.rb index c564f54..3b567b0 100644 --- a/lib/method_source/code_helpers.rb +++ b/lib/method_source/code_helpers.rb @@ -35,7 +35,7 @@ module MethodSource extract_first_expression(relevant_lines) do |code| code.gsub(/\#\{.*?\}/, "temp") end - rescue SyntaxError => e2 + rescue SyntaxError raise e end end |