1
0
mirror of https://github.com/go-task/task.git synced 2025-02-09 13:47:06 +02:00

refactor: use modern loop syntax

ref #1980
This commit is contained in:
Andrey Nering 2025-01-18 10:11:00 -03:00
parent 65a71e5df3
commit b3e4cfcf48

View File

@ -18,7 +18,7 @@ func (e *Executor) InterceptInterruptSignals() {
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
go func() {
for i := 0; i < maxInterruptSignals; i++ {
for i := range maxInterruptSignals {
sig := <-ch
if i+1 >= maxInterruptSignals {