mirror of https://github.com/google/benchmark.git
Fix dropped-style elses.
This commit is contained in:
parent
a31088632a
commit
160770fd08
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue