mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
pass app config and db status by reference to the presenter
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
d8aedf8117
commit
b354ea9e2e
1 changed files with 5 additions and 6 deletions
11
cmd/root.go
11
cmd/root.go
|
@ -237,12 +237,11 @@ func startWorker(userInput string, failOnSeverity *vulnerability.Severity) <-cha
|
|||
errs <- grypeerr.ErrAboveSeverityThreshold
|
||||
}
|
||||
|
||||
if appConfig != nil && dbStatus != nil {
|
||||
bus.Publish(partybus.Event{
|
||||
Type: event.VulnerabilityScanningFinished,
|
||||
Value: presenter.GetPresenter(presenterConfig, matches, packages, context, metadataProvider, *appConfig, *dbStatus),
|
||||
})
|
||||
}
|
||||
bus.Publish(partybus.Event{
|
||||
Type: event.VulnerabilityScanningFinished,
|
||||
Value: presenter.GetPresenter(presenterConfig, matches, packages, context, metadataProvider, appConfig, dbStatus),
|
||||
})
|
||||
|
||||
}()
|
||||
return errs
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue