Skip to content

Commit

Permalink
Merge pull request #2278 from hyuraku/fix-argument-WatchExpression-ad…
Browse files Browse the repository at this point in the history
…d_expression

fix arguments WatchExpression#add_expression
  • Loading branch information
andrehjr committed Jul 16, 2023
2 parents 7642967 + 7c8cd22 commit fcf38f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/pry/commands/watch_expression.rb
Expand Up @@ -46,7 +46,7 @@ def process
list
else
add_hook
add_expression(args)
add_expression
end
end

Expand Down Expand Up @@ -88,9 +88,7 @@ def eval_and_print_changed(output)
end
end

# TODO: fix arguments.
# https://github.com/pry/pry/commit/b031df2f2f5850ee6e9018f33d35f3485a9b0423
def add_expression(_arguments)
def add_expression
expressions << Expression.new(pry_instance, target, arg_string)
output.puts "Watching #{Code.new(arg_string).highlighted}"
end
Expand Down

0 comments on commit fcf38f4

Please sign in to comment.