mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
exclusions does not need to be variadic (#711)
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ func packagesExecWorker(userInput string) <-chan error {
|
||||
|
||||
checkForApplicationUpdate()
|
||||
|
||||
src, cleanup, err := source.New(userInput, appConfig.Registry.ToOptions(), appConfig.Exclusions...)
|
||||
src, cleanup, err := source.New(userInput, appConfig.Registry.ToOptions(), appConfig.Exclusions)
|
||||
if err != nil {
|
||||
errs <- fmt.Errorf("failed to determine image source: %w", err)
|
||||
return
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ func powerUserExecWorker(userInput string) <-chan error {
|
||||
|
||||
checkForApplicationUpdate()
|
||||
|
||||
src, cleanup, err := source.New(userInput, appConfig.Registry.ToOptions(), appConfig.Exclusions...)
|
||||
src, cleanup, err := source.New(userInput, appConfig.Registry.ToOptions(), appConfig.Exclusions)
|
||||
if err != nil {
|
||||
errs <- err
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user