Merge pull request #8822 from cakebaker/unexpand_remove_unnecessary_condition

unexpand: remove unnecessary condition
This commit is contained in:
Sylvestre Ledru
2025-10-05 17:55:54 +02:00
committed by GitHub
+1 -1
View File
@@ -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() {