summaryrefslogtreecommitdiff
path: root/lib/irb/command/exit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/command/exit.rb')
-rw-r--r--lib/irb/command/exit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/irb/command/exit.rb b/lib/irb/command/exit.rb
index 3109ec16e3..b4436f0343 100644
--- a/lib/irb/command/exit.rb
+++ b/lib/irb/command/exit.rb
@@ -8,10 +8,8 @@ module IRB
category "IRB"
description "Exit the current irb session."
- def execute(*)
+ def execute(_arg)
IRB.irb_exit
- rescue UncaughtThrowError
- Kernel.exit
end
end
end