chore: remove useless code (#2716)

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu 2024-03-27 00:21:03 +08:00 committed by GitHub
parent 57e9cc52a4
commit 469b4c13bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}