Skip to content

Commit 3afc640

Browse files
committed
add nolint:gosec about G115 rule
Signed-off-by: sivchari <[email protected]>
1 parent 3f96e4e commit 3afc640

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/log/zap/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (ev *levelFlag) Set(flagValue string) error {
8585
}
8686
if logLevel > 0 {
8787
intLevel := -1 * logLevel
88-
ev.setFunc(zap.NewAtomicLevelAt(zapcore.Level(int8(intLevel))))
88+
ev.setFunc(zap.NewAtomicLevelAt(zapcore.Level(int8(intLevel)))) //nolint:gosec // We don't care about G115 in here.
8989
} else {
9090
return fmt.Errorf("invalid log level \"%s\"", flagValue)
9191
}

pkg/webhook/admission/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func ValidationResponse(allowed bool, message string) Response {
7171
AdmissionResponse: admissionv1.AdmissionResponse{
7272
Allowed: allowed,
7373
Result: &metav1.Status{
74-
Code: int32(code),
74+
Code: int32(code), //nolint:gosec // We don't care about G115 in here.
7575
Reason: reason,
7676
},
7777
},

0 commit comments

Comments
 (0)