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

Fix header client. Simplify code.

This commit is contained in:
Sascha L. Teichmann 2023-03-24 13:40:31 +01:00
parent 8f87273837
commit 0c2768b711
6 changed files with 9 additions and 18 deletions

View file

@ -298,10 +298,7 @@ func (acp *AggregatorCSAFProvider) Validate() error {
if acp == nil {
return errors.New("aggregator.csaf_providers[] not allowed to be nil")
}
if err := acp.Metadata.Validate(); err != nil {
return err
}
return nil
return acp.Metadata.Validate()
}
// Validate validates the current state of the Aggregator.

View file

@ -163,10 +163,7 @@ func prepareCache(config string) (cache, error) {
if err != nil {
return err
}
if err := b.Put(cacheVersionKey, cacheVersion); err != nil {
return err
}
return nil
return b.Put(cacheVersionKey, cacheVersion)
}
b := tx.Bucket(validationsBucket)