mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
chore: remove useless code (#2716)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
57e9cc52a4
commit
469b4c13bb
@ -249,13 +249,6 @@ func getSource(ctx context.Context, opts *options.Catalog, userInput string, sou
|
|||||||
return nil, fmt.Errorf("could not determine source: %w", err)
|
return nil, fmt.Errorf("could not determine source: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
if userInput == "power-user" {
|
|
||||||
bus.Notify("Note: the 'power-user' command has been removed.")
|
|
||||||
}
|
|
||||||
return nil, fmt.Errorf("failed to construct source from user input %q: %w", userInput, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return src, nil
|
return src, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user