Fix variable type.

This commit is contained in:
Markus Reiter 2024-07-14 14:32:17 -04:00
parent 6f58bffc5c
commit 44766945fc
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -353,7 +353,7 @@ module Kernel
def ignore_interrupts(quiet: false) def ignore_interrupts(quiet: false)
IGNORE_INTERRUPTS_MUTEX.synchronize do IGNORE_INTERRUPTS_MUTEX.synchronize do
interrupted = false interrupted = T.let(false, T::Boolean)
old_sigint_handler = trap(:INT) do old_sigint_handler = trap(:INT) do
interrupted = true interrupted = true