diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 1649a282..96a215da 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -2154,10 +2154,10 @@ struct formatter, return formatter::do_format( gmtime(std::chrono::time_point_cast(val)), ctx, &subsecs); - } else { - return formatter::format( - gmtime(std::chrono::time_point_cast(val)), ctx); } + + return formatter::format( + gmtime(std::chrono::time_point_cast(val)), ctx); } };