From 8eec4914244d0dcf47b07d10d0ddc9ab09b95796 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 26 Jan 2026 06:30:00 -0800 Subject: [PATCH] Early exit --- include/fmt/format.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 9b02b595..14d8baf5 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2372,9 +2372,8 @@ FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end, ++begin; } break; - } else if (p == begin) { - break; } + if (p == begin) break; p = begin; } specs.set_align(alignment);