From 5b99b334f01cdaffe4d4c82bd63b63bec760af0e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 17 Aug 2025 10:03:01 -0700 Subject: [PATCH] Remove redundant else --- 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 6c2831e0..c4780832 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1345,9 +1345,8 @@ template class to_utf8 { buf.append(string_view("\xEF\xBF\xBD")); --p; continue; - } else { - c = (c << 10) + static_cast(*p) - 0x35fdc00; } + c = (c << 10) + static_cast(*p) - 0x35fdc00; } if (c < 0x80) { buf.push_back(static_cast(c));