Skip to content

Commit b6ac563

Browse files
committed
sort: update check path for bounded reader
1 parent 8ecc358 commit b6ac563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/sort/src/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn reader(
107107
) -> UResult<()> {
108108
let mut carry_over = vec![];
109109
for recycled_chunk in receiver {
110-
let should_continue = chunks::read(
110+
let progress = chunks::read(
111111
sender,
112112
recycled_chunk,
113113
None,
@@ -117,7 +117,7 @@ fn reader(
117117
settings.line_ending.into(),
118118
settings,
119119
)?;
120-
if !should_continue {
120+
if matches!(progress, chunks::ReadProgress::Finished) {
121121
break;
122122
}
123123
}

0 commit comments

Comments
 (0)