1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

expand: minor simplification of mode logic

This commit is contained in:
Sebastian Bentmar Holgersson 2023-01-03 22:44:59 +00:00 committed by Sylvestre Ledru
parent 1bf723fe40
commit 999957791a

View file

@ -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))