Skip to content

Commit eede2af

Browse files
committed
chore: cleanup
1 parent a536757 commit eede2af

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/package/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,6 @@ impl Package {
497497
Ok(result)
498498
}
499499

500-
pub fn is_dir(&self) -> bool {
501-
self.name.starts_with("d_")
502-
}
503-
504500
pub fn package_is_templated(&self, cwd: &Path) -> bool {
505501
// Check if src exists as a directory or file, if not return true:
506502
let src_path = cwd.join(&self.src);
@@ -522,7 +518,8 @@ impl Package {
522518
return is_templated(&entry.path().to_path_buf());
523519
}
524520
}
525-
} else if src_path.is_file() {
521+
}
522+
if src_path.is_file() {
526523
return is_templated(&src_path);
527524
}
528525
false

0 commit comments

Comments
 (0)