Skip to content

Commit

Permalink
fixing bool comparison lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
  • Loading branch information
ChaosInTheCRD committed May 10, 2024
1 parent 5ef815a commit ac10dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func runVerify(ctx context.Context, vo options.VerifyOptions, verifiers ...crypt
return fmt.Errorf("must supply either a public key, CA certificates or a verifier")
}

if vo.ArchivistaOptions.Enable == false && len(vo.AttestationFilePaths) == 0 {
if !vo.ArchivistaOptions.Enable && len(vo.AttestationFilePaths) == 0 {
return fmt.Errorf("must either specify attestation file paths or enable archivista as an attestation source")
}

Expand Down

0 comments on commit ac10dda

Please sign in to comment.