Browse Source

refactoring: remove unneeded metadata call

main
fdai7375 2 years ago
committed by fdai7451
parent
commit
42644b765a
  1. 1
      src/builtins/ls.rs

1
src/builtins/ls.rs

@ -29,6 +29,7 @@ impl Builtin for Ls {
continue; continue;
} }
}; };
let file_name = entry.file_name().to_string_lossy().to_string(); let file_name = entry.file_name().to_string_lossy().to_string();
let mut file_type = "unknown"; let mut file_type = "unknown";
if metadata.file_type().is_dir() { if metadata.file_type().is_dir() {

Loading…
Cancel
Save