diff --git a/src/options/stdin.rs b/src/options/stdin.rs index c94ab68d4..717951220 100644 --- a/src/options/stdin.rs +++ b/src/options/stdin.rs @@ -20,9 +20,7 @@ pub enum FilesInput { impl FilesInput { pub fn deduce(matches: &MatchedFlags<'_>, vars: &V) -> Result { Ok( - if io::stdin().is_terminal() || !matches.has(&flags::STDIN)? { - FilesInput::Args - } else if matches.has(&flags::STDIN)? && !io::stdin().is_terminal() { + if matches.has(&flags::STDIN)? || !io::stdin().is_terminal() { let separator = vars .get(EZA_STDIN_SEPARATOR) .unwrap_or(OsString::from("\n"));