From 781e5ebc711744fd09db7e556d7a1fb3babbb395 Mon Sep 17 00:00:00 2001 From: Matthias Glastra Date: Thu, 22 Aug 2024 11:47:00 +0200 Subject: [PATCH] ci: fix lint Signed-off-by: Matthias Glastra --- dsse/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsse/verify.go b/dsse/verify.go index 796039bd..d77e83c5 100644 --- a/dsse/verify.go +++ b/dsse/verify.go @@ -95,7 +95,7 @@ func (e Envelope) Verify(opts ...VerificationOption) ([]CheckedVerifier, error) checkedVerifiers := make([]CheckedVerifier, 0) verified := 0 for _, sig := range e.Signatures { - if sig.Certificate != nil && len(sig.Certificate) > 0 { + if len(sig.Certificate) > 0 { cert, err := cryptoutil.TryParseCertificate(sig.Certificate) if err != nil { continue