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

Rename opts to cfg

This commit is contained in:
Sascha L. Teichmann 2023-07-20 01:16:05 +02:00
parent 0d17db0c59
commit 12ad7706e3
4 changed files with 62 additions and 64 deletions

View file

@ -103,7 +103,7 @@ func (r *validReporter) report(p *processor, domain *Domain) {
case !p.invalidAdvisories.used():
req.message(InfoType, "No validations performed")
case len(p.invalidAdvisories) == 0:
if p.validator != nil && containsAny(p.opts.RemoteValidatorPresets,
if p.validator != nil && containsAny(p.cfg.RemoteValidatorPresets,
"basic", "mandatory", "extended", "full") {
req.message(InfoType, "All advisories validated fine.")
} else {