summaryrefslogtreecommitdiff
path: root/lib/pry/commands/watch_expression.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands/watch_expression.rb')
-rw-r--r--lib/pry/commands/watch_expression.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/watch_expression.rb b/lib/pry/commands/watch_expression.rb
index f732a53f..3bdb3998 100644
--- a/lib/pry/commands/watch_expression.rb
+++ b/lib/pry/commands/watch_expression.rb
@@ -96,7 +96,7 @@ class Pry
end
def add_hook
- hook = [:after_eval, :watch_expression]
+ hook = %i[after_eval watch_expression]
return if pry_instance.hooks.hook_exists?(*hook)
pry_instance.hooks.add_hook(*hook) do |_, pry_instance|