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:
parent
8f87273837
commit
0c2768b711
6 changed files with 9 additions and 18 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue