From ac10dda6637453690cda537777b00cdeae1a01e9 Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Fri, 10 May 2024 17:13:14 +0100 Subject: [PATCH] fixing bool comparison lint issue Signed-off-by: chaosinthecrd --- cmd/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/verify.go b/cmd/verify.go index 8f1dbf42..28d06461 100644 --- a/cmd/verify.go +++ b/cmd/verify.go @@ -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") }