From a703baf32acf15fc64102b489bb8ed6e472d84bd Mon Sep 17 00:00:00 2001 From: Phill MV Date: Thu, 5 Oct 2023 16:00:46 -0400 Subject: [PATCH] Linting. I actually find the switch statement here MORE confusing than the if else, so I have taken the liberty to disable gocritic for this particular if. Signed-off-by: Phill MV --- cmd/sigstore-go/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sigstore-go/main.go b/cmd/sigstore-go/main.go index 8de0f2b2..3e6ef65c 100644 --- a/cmd/sigstore-go/main.go +++ b/cmd/sigstore-go/main.go @@ -166,7 +166,7 @@ func run() error { return err } - if *artifactDigest != "" { + if *artifactDigest != "" { //nolint:gocritic artifactDigestBytes, err := hex.DecodeString(*artifactDigest) if err != nil { return err