Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Feb 5, 2025
1 parent 2a96e6b commit 9ddea7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions signals/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package signals

import (
"context"
"fmt"
"errors"
"os"
"os/signal"

Expand Down Expand Up @@ -45,7 +45,8 @@ func Context() context.Context {
go func() {
sig := <-sigCh
log.Infof(`Received signal '%s'; beginning shutdown`, sig)
cancel(fmt.Errorf("cancelling context, received signal %s", sig))
//nolint:err113
cancel(errors.New("cancelling context, received signal " + sig.String()))
sig = <-sigCh
log.Fatalf(
`Received signal '%s' during shutdown; exiting immediately`,
Expand Down

0 comments on commit 9ddea7a

Please sign in to comment.