Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/uu/tee/src/tee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ fn copy(mut input: impl Read, mut output: impl Write) -> Result<()> {
// `tee` does not buffer the input.
output.flush()?;
}
Err(e) if e.kind() == ErrorKind::Interrupted => {}
Err(e) => return Err(e),
Err(e) if e.kind() != ErrorKind::Interrupted => return Err(e),
_ => {}
}
}
// buffer is too small optimize for large input
Expand All @@ -150,8 +150,8 @@ fn copy(mut input: impl Read, mut output: impl Write) -> Result<()> {
// `tee` does not buffer the input.
output.flush()?;
}
Err(e) if e.kind() == ErrorKind::Interrupted => {}
Err(e) => return Err(e),
Err(e) if e.kind() != ErrorKind::Interrupted => return Err(e),
_ => {}
}
}
}
Expand Down
Loading