Skip to content

Commit

Permalink
Fix "lib/debug/session.rb:2527: warning: assigned but unused variable…
Browse files Browse the repository at this point in the history
… - sym"
  • Loading branch information
y-yagi committed Jun 18, 2023
1 parent 3b0f2fd commit 9eb5b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ def trap sig, *command, &command_proc
sig
end

case sig&.to_s&.to_sym
case sym
when :INT, :SIGINT
if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint?
return SESSION.save_int_trap(command.empty? ? command_proc : command.first)
Expand Down

0 comments on commit 9eb5b5e

Please sign in to comment.