Skip to content

Commit

Permalink
Remove check for empty fingerprint
Browse files Browse the repository at this point in the history
The schema validation already catches this error and this check will
never run.
  • Loading branch information
koplas committed Sep 6, 2024
1 parent 9037574 commit c2e24f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions cmd/csaf_downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,6 @@ func (d *downloader) loadOpenPGPKeys(
continue
}

if key.Fingerprint == "" {
slog.Warn("No fingerprint for public OpenPGP key found.")
continue
}

if !strings.EqualFold(ckey.GetFingerprint(), string(key.Fingerprint)) {
slog.Warn(
"Fingerprint of public OpenPGP key does not match remotely loaded",
Expand Down

0 comments on commit c2e24f7

Please sign in to comment.