From c3099beb6f8abbb121e501452f676fea576e8e36 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 2 May 2020 22:00:34 -0700 Subject: [PATCH] Cleanup --- include/fmt/format.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index a087ca31..177a2d67 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2963,25 +2963,22 @@ struct formatter(specs_.type, eh)); break; case internal::type::float_type: - if (internal::const_check(FMT_USE_FLOAT)) { + if (internal::const_check(FMT_USE_FLOAT)) internal::parse_float_type_spec(specs_, eh); - } else { + else FMT_ASSERT(false, "float support disabled"); - } break; case internal::type::double_type: - if (internal::const_check(FMT_USE_DOUBLE)) { + if (internal::const_check(FMT_USE_DOUBLE)) internal::parse_float_type_spec(specs_, eh); - } else { + else FMT_ASSERT(false, "double support disabled"); - } break; case internal::type::long_double_type: - if (internal::const_check(FMT_USE_LONG_DOUBLE)) { + if (internal::const_check(FMT_USE_LONG_DOUBLE)) internal::parse_float_type_spec(specs_, eh); - } else { + else FMT_ASSERT(false, "long double support disabled"); - } break; case internal::type::cstring_type: internal::handle_cstring_type_spec(