Skip to content

Commit d01be5b

Browse files
oech3cakebaker
authored andcommitted
tee: simplify aborted bool
1 parent 395da6a commit d01be5b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/uu/tee/src/tee.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@ impl MultiWriter {
202202
.retain_mut(|writer| match writer.inner.write_all(buf) {
203203
Ok(()) => true,
204204
Err(e) => {
205-
if process_error(mode, e, writer, &mut self.ignored_errors).is_err() {
206-
self.aborted = true;
207-
}
205+
self.aborted |=
206+
process_error(mode, e, writer, &mut self.ignored_errors).is_err();
208207
false
209208
}
210209
});

0 commit comments

Comments
 (0)