Skip to content

Commit 4b9c503

Browse files
committed
fix: remove unnecessary arg value existence check
1 parent b9554f3 commit 4b9c503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo/commands/pkgid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn cli() -> App {
1515

1616
pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
1717
let ws = args.workspace(config)?;
18-
if !args.is_present("spec") && args.is_present_with_zero_values("package") {
18+
if args.is_present_with_zero_values("package") {
1919
print_available_packages(&ws)?
2020
}
2121
let spec = args.value_of("spec").or_else(|| args.value_of("package"));

0 commit comments

Comments
 (0)