Skip to content

Commit f0c11aa

Browse files
committed
readability-else-after-return
1 parent 659a25f commit f0c11aa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,12 +2603,11 @@ bool o2::aod::dqhistograms::ValidateJSONHistogram(T hist)
26032603
if (!hist->HasMember("nBins")) {
26042604
LOG(fatal) << "Missing nBins field for histogram";
26052605
return false;
2606-
} else {
2607-
if (!hist->FindMember("nBins")->value.IsArray()) {
2606+
} if (!hist->FindMember("nBins")->value.IsArray()) {
26082607
LOG(fatal) << "nBins field should be an array";
26092608
return false;
26102609
}
2611-
}
2610+
26122611
}
26132612
if (hist->HasMember("axLabels") && !hist->FindMember("axLabels")->value.IsArray()) {
26142613
LOG(fatal) << "axLabels field should be an array of strings";

0 commit comments

Comments
 (0)