diff --git a/pkg/check/cosign/check.go b/pkg/check/cosign/check.go index 64e1894d..14a5fd24 100644 --- a/pkg/check/cosign/check.go +++ b/pkg/check/cosign/check.go @@ -72,7 +72,7 @@ func Check(data []byte, dataSig []byte, dataCert []byte, certIdentity string, ce cmd.Stdout = &outBuffer cmd.Stderr = &errBuffer - cmd.Run() + cmd.Run() //nolint stdOutContent, stdErrContent := outBuffer.String(), errBuffer.String() diff --git a/pkg/loghelper/loghelper.go b/pkg/loghelper/loghelper.go index 6c333c83..25a28d79 100644 --- a/pkg/loghelper/loghelper.go +++ b/pkg/loghelper/loghelper.go @@ -29,7 +29,7 @@ import ( const Error = "error" -var InertDisplayer inertDisplayer +var InertDisplayer inertDisplayer //nolint type Displayer interface { Display(msg string) @@ -64,17 +64,17 @@ func (bd BasicDisplayer) Flush(bool) { type inertDisplayer struct{} -func (_ inertDisplayer) Display(_ string) { +func (inertDisplayer) Display(_ string) { } -func (_ inertDisplayer) IsDebug() bool { +func (inertDisplayer) IsDebug() bool { return false } -func (_ inertDisplayer) Log(_ hclog.Level, _ string, _ ...any) { +func (inertDisplayer) Log(_ hclog.Level, _ string, _ ...any) { } -func (_ inertDisplayer) Flush(bool) { +func (inertDisplayer) Flush(bool) { } type logWrapper struct {