mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
od: remove collapsible_if
This commit is contained in:
+6
-8
@@ -616,15 +616,13 @@ fn extract_strings_from_input(
|
||||
|
||||
loop {
|
||||
// Check if we've reached the read_bytes limit
|
||||
if let Some(limit) = read_bytes {
|
||||
if bytes_read >= limit {
|
||||
// Special case: when -N limit is reached with a pending string
|
||||
// that meets min_length, output it even without null terminator
|
||||
if current_string.len() >= min_length {
|
||||
print_string(string_start_offset, ¤t_string)?;
|
||||
}
|
||||
break;
|
||||
if read_bytes.is_some_and(|l| bytes_read >= l) {
|
||||
// Special case: when -N limit is reached with a pending string
|
||||
// that meets min_length, output it even without null terminator
|
||||
if current_string.len() >= min_length {
|
||||
print_string(string_start_offset, ¤t_string)?;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Read one byte at a time
|
||||
|
||||
Reference in New Issue
Block a user