lib/irb/command/force_exit.rb in irb-1.12.0 vs lib/irb/command/force_exit.rb in irb-1.13.0
- old
+ new
@@ -6,13 +6,11 @@
module Command
class ForceExit < Base
category "IRB"
description "Exit the current process."
- def execute(*)
+ def execute(_arg)
throw :IRB_EXIT, true
- rescue UncaughtThrowError
- Kernel.exit!
end
end
end
# :startdoc: