Skip to content

Commit baa1391

Browse files
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>
1 parent 2ee25bf commit baa1391

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • third-party/github.com/letsencrypt/boulder/va

third-party/github.com/letsencrypt/boulder/va/tlsalpn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (va *ValidationAuthorityImpl) getChallengeCert(
173173
return errors.New("no certificates provided")
174174
}
175175
// Parse the presented certificate.
176-
cert, err := x509.ParseCertificate(certificates[0])
176+
_, err := x509.ParseCertificate(certificates[0])
177177
if err != nil {
178178
return fmt.Errorf("failed to parse certificate: %w", err)
179179
}

0 commit comments

Comments
 (0)