1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Remove check for empty fingerprint

The schema validation already catches this error and this check will
never run.
This commit is contained in:
koplas 2024-09-06 18:18:37 +02:00
parent 9037574d96
commit c2e24f7bbb
2 changed files with 0 additions and 10 deletions

View file

@ -1518,11 +1518,6 @@ func (p *processor) checkPGPKeys(_ string) error {
continue
}
if key.Fingerprint == "" {
p.badPGPs.warn("No fingerprint for public OpenPGP key found.")
continue
}
if !strings.EqualFold(ckey.GetFingerprint(), string(key.Fingerprint)) {
p.badPGPs.error("Given Fingerprint (%q) of public OpenPGP key %q does not match remotely loaded (%q).", string(key.Fingerprint), u, ckey.GetFingerprint())
continue