mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
expand: minor simplification of mode logic
This commit is contained in:
committed by
Sylvestre Ledru
parent
1bf723fe40
commit
999957791a
@@ -186,10 +186,9 @@ fn tabstops_parse(s: &str) -> Result<(RemainingMode, Vec<usize>), ParseError> {
|
||||
// then just use the default tabstops.
|
||||
if nums.is_empty() {
|
||||
nums = vec![DEFAULT_TABSTOP];
|
||||
remaining_mode = RemainingMode::None;
|
||||
}
|
||||
|
||||
if nums.len() == 1 {
|
||||
if nums.len() < 2 {
|
||||
remaining_mode = RemainingMode::None;
|
||||
}
|
||||
Ok((remaining_mode, nums))
|
||||
|
||||
Reference in New Issue
Block a user