Skip to content

Commit

Permalink
Address reassign linter violations
Browse files Browse the repository at this point in the history
Remove the "nolint" override as "utilruntime.ErrorHandlers" is
excluded in the linter config.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Nov 13, 2024
1 parent bdad1ec commit 7fcd250
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/util/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ func AddCertificateErrorHandler(fatal bool) {
logCertificateError = logger.FatalfOnError
}

//nolint:reassign // We need to reassign ErrorHandlers to register our handler
utilruntime.ErrorHandlers = append(utilruntime.ErrorHandlers,
func(_ context.Context, err error, _ string, _ ...interface{}) {
var unknownAuthorityError x509.UnknownAuthorityError
Expand Down

0 comments on commit 7fcd250

Please sign in to comment.