summaryrefslogtreecommitdiff
path: root/lib/pry
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-16 04:38:17 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-10-16 04:38:17 +0800
commitc22914273949d29b77d31e3f1f9eeacf0a88131c (patch)
tree86603152d0c60db33c4b90e06ef456693e1e0053 /lib/pry
parenteef698b6517ecc2f48d1a6e0dad77710ce6b83c1 (diff)
downloadpry-c22914273949d29b77d31e3f1f9eeacf0a88131c.tar.gz
rubocop: fix offences of the Lint/AmbiguousBlockAssociation coprubocop-lint-ambiguous-block-assosication
Diffstat (limited to 'lib/pry')
-rw-r--r--lib/pry/object_path.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pry/object_path.rb b/lib/pry/object_path.rb
index d509a749..6c9e5f98 100644
--- a/lib/pry/object_path.rb
+++ b/lib/pry/object_path.rb
@@ -74,9 +74,10 @@ class Pry
"Exception: #{err.inspect}"
].join("\n")
- raise CommandError.new(msg).tap { |e|
- e.set_backtrace err.backtrace
- }
+ command_error = CommandError.new(msg)
+ command_error.set_backtrace(err.backtrace)
+
+ raise command_error
end
end
end