Skip to content

Commit

Permalink
refactor: use modern loop syntax
Browse files Browse the repository at this point in the history
ref #1980
  • Loading branch information
andreynering committed Jan 18, 2025
1 parent 65a71e5 commit b3e4cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b3e4cfc

Please sign in to comment.