mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Conversion provider -> publisher is not worth the method.
This commit is contained in:
parent
b608746fac
commit
37d8a8d6df
2 changed files with 6 additions and 13 deletions
|
|
@ -146,13 +146,12 @@ func (p *processor) full() error {
|
|||
|
||||
// "https://" signals a publisher.
|
||||
if strings.HasPrefix(j.provider.Domain, "https://") {
|
||||
|
||||
var pub csaf.AggregatorCSAFPublisher
|
||||
|
||||
pub.FromProvider(j.aggregatorProvider)
|
||||
pub.UpdateInterval = j.provider.updateInterval(p.cfg)
|
||||
|
||||
publishers = append(publishers, &pub)
|
||||
pub := &csaf.AggregatorCSAFPublisher{
|
||||
Metadata: j.aggregatorProvider.Metadata,
|
||||
Mirrors: j.aggregatorProvider.Mirrors,
|
||||
UpdateInterval: j.provider.updateInterval(p.cfg),
|
||||
}
|
||||
publishers = append(publishers, pub)
|
||||
} else {
|
||||
providers = append(providers, j.aggregatorProvider)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue