Skip to content

Commit

Permalink
Catch or explicitly ignore unhandled errors
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks committed Sep 16, 2024
1 parent 2d92b9a commit cea11a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func NewWatchdog(u *url.URL, componentName string, failureCounterFileName string
logger.Fatal("cannot-create-failure-counter-file", err)
return nil
}
// #gosec G104 - its ok if we don't catch closing this file. The important bit is that we created it
failureCounterFile.Close()

return &Watchdog{
Expand Down

0 comments on commit cea11a7

Please sign in to comment.