diff --git a/pkg/cmd/util/helpers.go b/pkg/cmd/util/helpers.go index ac55cf80a..bbd66b750 100644 --- a/pkg/cmd/util/helpers.go +++ b/pkg/cmd/util/helpers.go @@ -93,6 +93,8 @@ func DefaultBehaviorOnFatal() { // klog.Fatal is invoked for extended information. This is intended for maintainer // debugging and out of a reasonable range for users. func fatal(msg string, code int) { + // nolint:logcheck // Not using the result of klog.V(99) inside the if + // branch is okay, we just use it to determine how to terminate. if klog.V(99).Enabled() { klog.FatalDepth(2, msg) }