From 658e0d8796ff90d7ec6bb26162c201d93f5bed94 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sun, 5 Oct 2025 17:04:33 +0200 Subject: [PATCH] unexpand: remove unnecessary condition --- src/uu/unexpand/src/unexpand.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/unexpand/src/unexpand.rs b/src/uu/unexpand/src/unexpand.rs index 17c35353a..dbc68c055 100644 --- a/src/uu/unexpand/src/unexpand.rs +++ b/src/uu/unexpand/src/unexpand.rs @@ -328,7 +328,7 @@ fn unexpand_line( let mut pctype = CharType::Other; // Fast path for leading spaces in non-UTF8 mode: count consecutive spaces/tabs at start - if !options.uflag && init && !options.aflag { + if !options.uflag && !options.aflag { // In default mode (not -a), we only convert leading spaces // So we can batch process them and then copy the rest while byte < buf.len() {