Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <dvaumoron@gmail.com>
  • Loading branch information
dvaumoron committed May 27, 2024
1 parent f2c0f41 commit a4e1d75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/check/cosign/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
10 changes: 5 additions & 5 deletions pkg/loghelper/loghelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

const Error = "error"

var InertDisplayer inertDisplayer
var InertDisplayer inertDisplayer //nolint

type Displayer interface {
Display(msg string)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a4e1d75

Please sign in to comment.