mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tee: remove duplicated flush()
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user