Skip to content

Commit 4afa6d7

Browse files
committed
fix: remove reduntant is_dir() check
1 parent ad2b1ee commit 4afa6d7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@ pub trait CommandExt: Sized {
353353
None => return false,
354354
};
355355

356-
// allow directories
357-
if path.is_dir() {
358-
return true;
359-
}
360356
// allow `Cargo.lock` file
361357
file_name == OsStr::new("Cargo.lock")
362358
}),

0 commit comments

Comments
 (0)