1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Edit::MethodPatcher: remove unnecessary assignment

This commit is contained in:
John Mair 2013-01-16 15:50:21 +01:00
parent 2fd0e1b155
commit e53af39a93

View file

@ -95,7 +95,7 @@ class Pry
# @return [String]
def wrap_for_owner(source)
Pry.current[:pry_owner] = code_object.owner
source = "Pry.current[:pry_owner].class_eval do\n#{source}\nend"
"Pry.current[:pry_owner].class_eval do\n#{source}\nend"
end
# Update the new source code to have the correct Module.nesting.