From 160770fd08f8da8167edf66f55a047af1bc6291f Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Tue, 2 May 2017 23:30:36 +0100 Subject: [PATCH] Fix dropped-style elses. --- src/console_reporter.cc | 6 ++---- src/csv_reporter.cc | 3 +-- test/output_test_helper.cc | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/console_reporter.cc b/src/console_reporter.cc index 61eff2c9..7c3b7d84 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -60,8 +60,7 @@ void ConsoleReporter::PrintHeader(const Run& run) { for(auto const& c : run.counters) { str += FormatString(" %10s", c.first.c_str()); } - } - else { + } else { str += " UserCounters..."; } } @@ -153,8 +152,7 @@ void ConsoleReporter::PrintRunData(const Run& result) { if (output_options_ & OO_Tabular) { if (c.second.flags & Counter::kIsRate) { printer(Out, COLOR_DEFAULT, " %8s/s", s.c_str()); - } - else { + } else { printer(Out, COLOR_DEFAULT, " %10s", s.c_str()); } } else { diff --git a/src/csv_reporter.cc b/src/csv_reporter.cc index 5ceb0169..b8072fd7 100644 --- a/src/csv_reporter.cc +++ b/src/csv_reporter.cc @@ -139,8 +139,7 @@ void CSVReporter::PrintRunData(const Run & run) { auto it = run.counters.find(ucn); if(it == run.counters.end()) { Out << ","; - } - else { + } else { Out << "," << it->second; } } diff --git a/test/output_test_helper.cc b/test/output_test_helper.cc index b6ae9551..b67140b3 100644 --- a/test/output_test_helper.cc +++ b/test/output_test_helper.cc @@ -237,8 +237,7 @@ void ResultsChecker::CheckResults(std::stringstream& output) { if(!p.regex->Match(r.name)) { VLOG(2) << p.regex_str << " is not matched by " << r.name << "\n"; continue; - } - else { + } else { VLOG(2) << p.regex_str << " is matched by " << r.name << "\n"; } VLOG(1) << "Checking results of " << r.name << ": ... \n";