summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Nagel <jacknagel@gmail.com>2013-04-06 01:01:30 -0500
committerJack Nagel <jacknagel@gmail.com>2013-04-06 01:01:30 -0500
commitd7e2d31b74055f058805cfdc5e6d6d0486dbf51a (patch)
tree612a16f79ecc4a3d22914c7351e7cf8db80b6b86
parentf300a4f3e8303b7d11e010897e2dd6c7c9aef7ae (diff)
downloadmethod_source-d7e2d31b74055f058805cfdc5e6d6d0486dbf51a.tar.gz
Fix 'assigned but unused variable' warning
-rw-r--r--lib/method_source/code_helpers.rb2
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