diff options
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index 9a3a491641..0c145069c0 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -389,11 +389,7 @@ module IRB # # Will raise an Abort exception, or the given +exception+. def IRB.irb_abort(irb, exception = Abort) - if defined? Thread - irb.context.thread.raise exception, "abort then interrupt!" - else - raise exception, "abort then interrupt!" - end + irb.context.thread.raise exception, "abort then interrupt!" end class Irb |