From 6ed0fc4a5165f5536ae366d1a2767122ad30c6d5 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 2 Jul 2021 19:58:48 +0200 Subject: [PATCH] Simplify format_stats_log implementation --- src/Statistics.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Statistics.cpp b/src/Statistics.cpp index a630857a1..cfba041ab 100644 --- a/src/Statistics.cpp +++ b/src/Statistics.cpp @@ -346,11 +346,7 @@ zero_all_counters(const Config& config) std::string format_stats_log(const Config& config) { - std::string result; - - result += FMT("{:36}{}\n", "stats log", config.stats_log()); - - return result; + return FMT("{:36}{}\n", "stats log", config.stats_log()); } std::string -- 2.47.3