Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Hofstetter <[email protected]>
  • Loading branch information
sylvestre and cakebaker authored Jun 24, 2024
1 parent 572485c commit c0df9e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/uu/ls/src/dired.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ pub fn update_positions(dired: &mut DiredOutput, start: usize, end: usize) {
/// as it can be overridden by --hyperlink
pub fn is_dired_arg_present() -> bool {
let args: Vec<String> = std::env::args().collect();
let dired_index = args.iter().position(|x| x == "--dired" || x == "-D");

dired_index.is_some()
args.iter().any(|x| x == "--dired" || x == "-D")
}

#[cfg(test)]
Expand Down

0 comments on commit c0df9e2

Please sign in to comment.