Skip to content

Commit 3073129

Browse files
y-yagiko1
authored andcommitted
Fix "lib/debug/session.rb:2527: warning: assigned but unused variable - sym"
1 parent 5bc4c51 commit 3073129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,7 @@ def trap sig, *command, &command_proc
25382538
sig
25392539
end
25402540

2541-
case sig&.to_s&.to_sym
2541+
case sym
25422542
when :INT, :SIGINT
25432543
if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint?
25442544
return SESSION.save_int_trap(command.empty? ? command_proc : command.first)

0 commit comments

Comments
 (0)