chore: remove useless code (#2716)

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu
2024-03-26 12:21:03 -04:00
committed by GitHub
parent 57e9cc52a4
commit 469b4c13bb
-7
View File
@@ -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)
}
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
}