Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
// close closes external ressources of the processor.
func (p *processor) close() {
if p.validator != nil {
p.validator.Close()

Check failure on line 203 in cmd/csaf_checker/processor.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `p.validator.Close` is not checked (errcheck)
p.validator = nil
}
}
Expand Down Expand Up @@ -254,14 +254,12 @@
if !p.checkProviderMetadata(d) {
// We need to fail the domain if the PMD cannot be parsed.
p.badProviderMetadata.use()
message := fmt.Sprintf("Could not parse the Provider-Metadata.json of: %s", d)
p.badProviderMetadata.error(message)
p.badProviderMetadata.error("Could not parse the Provider-Metadata.json of: %s", d)

}
if err := p.checkDomain(d); err != nil {
p.badProviderMetadata.use()
message := fmt.Sprintf("Failed to find valid provider-metadata.json for domain %s: %v. ", d, err)
p.badProviderMetadata.error(message)
p.badProviderMetadata.error("Failed to find valid provider-metadata.json for domain %s: %v. ", d, err)
}
domain := &Domain{Name: d}

Expand Down Expand Up @@ -1097,7 +1095,7 @@
}
}
// check for service category document
p.serviceCheck(feeds)

Check failure on line 1098 in cmd/csaf_checker/processor.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `p.serviceCheck` is not checked (errcheck)
} else {
p.badROLIEFeed.use()
p.badROLIEFeed.error("ROLIE feed based distribution was not used.")
Expand Down Expand Up @@ -1563,7 +1561,7 @@
p.keys = keyring
}
} else {
p.keys.AddKey(ckey)

Check failure on line 1564 in cmd/csaf_checker/processor.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `p.keys.AddKey` is not checked (errcheck)
}
}

Expand Down
Loading