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 d122dd3 commit 4561de9
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 4561de9

Please sign in to comment.