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 authored and ko1 committed Sep 25, 2023
1 parent 5bc4c51 commit 3073129
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 @@ -2538,7 +2538,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 3073129

Please sign in to comment.