Fix dropped-style elses.

This commit is contained in:
Joao Paulo Magalhaes 2017-05-02 23:30:36 +01:00
parent a31088632a
commit 160770fd08
3 changed files with 4 additions and 8 deletions

View File

@ -60,8 +60,7 @@ void ConsoleReporter::PrintHeader(const Run& run) {
for(auto const& c : run.counters) { for(auto const& c : run.counters) {
str += FormatString(" %10s", c.first.c_str()); str += FormatString(" %10s", c.first.c_str());
} }
} } else {
else {
str += " UserCounters..."; str += " UserCounters...";
} }
} }
@ -153,8 +152,7 @@ void ConsoleReporter::PrintRunData(const Run& result) {
if (output_options_ & OO_Tabular) { if (output_options_ & OO_Tabular) {
if (c.second.flags & Counter::kIsRate) { if (c.second.flags & Counter::kIsRate) {
printer(Out, COLOR_DEFAULT, " %8s/s", s.c_str()); printer(Out, COLOR_DEFAULT, " %8s/s", s.c_str());
} } else {
else {
printer(Out, COLOR_DEFAULT, " %10s", s.c_str()); printer(Out, COLOR_DEFAULT, " %10s", s.c_str());
} }
} else { } else {

View File

@ -139,8 +139,7 @@ void CSVReporter::PrintRunData(const Run & run) {
auto it = run.counters.find(ucn); auto it = run.counters.find(ucn);
if(it == run.counters.end()) { if(it == run.counters.end()) {
Out << ","; Out << ",";
} } else {
else {
Out << "," << it->second; Out << "," << it->second;
} }
} }

View File

@ -237,8 +237,7 @@ void ResultsChecker::CheckResults(std::stringstream& output) {
if(!p.regex->Match(r.name)) { if(!p.regex->Match(r.name)) {
VLOG(2) << p.regex_str << " is not matched by " << r.name << "\n"; VLOG(2) << p.regex_str << " is not matched by " << r.name << "\n";
continue; continue;
} } else {
else {
VLOG(2) << p.regex_str << " is matched by " << r.name << "\n"; VLOG(2) << p.regex_str << " is matched by " << r.name << "\n";
} }
VLOG(1) << "Checking results of " << r.name << ": ... \n"; VLOG(1) << "Checking results of " << r.name << ": ... \n";