summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2020-03-20 19:15:14 +0800
committerKyrylo Silin <silin@kyrylo.org>2020-03-20 19:15:14 +0800
commitc6b014839aaee608ea44617720247de752e968a4 (patch)
tree07afaaa6556aee495a778286f4cecbf11f2dc07a
parent6462ae85ea2842fe31ec28ff223ce4c848e31f65 (diff)
downloadpry-c6b014839aaee608ea44617720247de752e968a4.tar.gz
commands/edit/file_and_line_locator: refactor eval expression
Thanks for the catch: https://github.com/pry/pry/commit/272b3290b5250d28ee82a5ff65aa3b29b825e37b#commitcomment-36938715
-rw-r--r--lib/pry/commands/edit/file_and_line_locator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/edit/file_and_line_locator.rb b/lib/pry/commands/edit/file_and_line_locator.rb
index e3b8a616..2d0f7713 100644
--- a/lib/pry/commands/edit/file_and_line_locator.rb
+++ b/lib/pry/commands/edit/file_and_line_locator.rb
@@ -9,7 +9,7 @@ class Pry
if target.respond_to?(:source_location)
target.source_location
else
- [target.eval("__FILE__"), target.eval("__LINE__")]
+ target.eval("[__FILE__, __LINE__]")
end
end