Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
phillmv committed Oct 5, 2023
1 parent bfd2453 commit a703baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sigstore-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a703baf

Please sign in to comment.