diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-11 16:22:20 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-11 16:22:20 -0700 |
commit | 5140e6a4c3b7771830e3dd07e31626f81401f8e2 (patch) | |
tree | 30c9d3bfae0be78eb09a03329d367704df86f737 /lib/irb/extend-command.rb | |
parent | 70d583a7e08a948c33a1c55c46e30ed4df27aa48 (diff) |
Fix calling exit if irb_context is nil
Trying to avoid a flaky failure like:
https://github.com/ruby/ruby/actions/runs/6486918029/job/17616113816
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r-- | lib/irb/extend-command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index 514293a438..cce7f8a4a7 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -22,7 +22,7 @@ module IRB # :nodoc: # # Same as <code>IRB.CurrentContext.exit</code>. def irb_exit(ret = 0) - irb_context.exit(ret) + irb_context&.exit(ret) end # Displays current configuration. |