From cd061d46e603d71236ba7c6160f891ec0305aa66 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 30 Apr 2021 12:33:35 +0200 Subject: [PATCH] metrics_stdout: remove obsolete if --- srsue/src/metrics_stdout.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/srsue/src/metrics_stdout.cc b/srsue/src/metrics_stdout.cc index 43ec1f55b..6818a019e 100644 --- a/srsue/src/metrics_stdout.cc +++ b/srsue/src/metrics_stdout.cc @@ -237,11 +237,7 @@ std::string metrics_stdout::float_to_eng_string(float f, int digits) } const double scaled = f * pow(1000.0, -degree); - if (degree != 0) { - return float_to_string(scaled, digits) + factor; - } else { - return float_to_string(scaled, digits) + factor; - } + return float_to_string(scaled, digits) + factor; } } // namespace srsue