From baa13912dc36a873f218784b8e79d9ec79e006a6 Mon Sep 17 00:00:00 2001 From: Mustapha BARKI Date: Wed, 16 Jul 2025 12:12:07 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 29: Useless assignment to local variable Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- third-party/github.com/letsencrypt/boulder/va/tlsalpn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/github.com/letsencrypt/boulder/va/tlsalpn.go b/third-party/github.com/letsencrypt/boulder/va/tlsalpn.go index 31e8ec51699..de524a94153 100644 --- a/third-party/github.com/letsencrypt/boulder/va/tlsalpn.go +++ b/third-party/github.com/letsencrypt/boulder/va/tlsalpn.go @@ -173,7 +173,7 @@ func (va *ValidationAuthorityImpl) getChallengeCert( return errors.New("no certificates provided") } // Parse the presented certificate. - cert, err := x509.ParseCertificate(certificates[0]) + _, err := x509.ParseCertificate(certificates[0]) if err != nil { return fmt.Errorf("failed to parse certificate: %w", err) }