tee: remove duplicated flush()

This commit is contained in:
oech3
2026-04-20 09:16:16 +02:00
committed by Daniel Hofstetter
parent ec1fcdb4ac
commit 7254f8dfc9
+1 -1
View File
@@ -103,7 +103,7 @@ fn tee(options: &Options) -> Result<()> {
_ => Ok(()),
};
if had_open_errors || res.is_err() || output.flush().is_err() || output.error_occurred() {
if had_open_errors || res.is_err() || output.error_occurred() {
Err(Error::from(ErrorKind::Other))
} else {
Ok(())