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) {
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 {

View file

@ -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;
}
}

View file

@ -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";