Skip to content

Commit

Permalink
Remove double check given path is dir
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvdmeulen committed Nov 6, 2023
1 parent 028fb8f commit c78771a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ struct Tree {

impl Tree {
fn new(base: &Path, ignore_extensions: bool) -> Self {
if !base.is_dir() {
abort_call_site!("Given directory is not a directory");
}

let mut tree = Self::default();
for entry in base.read_dir().unwrap() {
let mut entry = entry.unwrap().path();
Expand Down

0 comments on commit c78771a

Please sign in to comment.