Skip to content

Commit 7f67766

Browse files
committed
else after return, code quality
1 parent 8e39052 commit 7f67766

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

PWGDQ/Tasks/jPsiMuonCorrelations.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ double getWeight(const double pT, const std::vector<double>& binsPT, const std::
271271
if (binEff == -1) {
272272
LOGF(warn, "pT value %f is outside the defined pT bins", pT);
273273
return 0.0;
274-
} else {
275-
return 1.0 / (efficiency[binEff] * (getRapidity(pT, etaMax) - getRapidity(pT, etaMin)));
276274
}
275+
return 1.0 / (efficiency[binEff] * (getRapidity(pT, etaMax) - getRapidity(pT, etaMin)));
277276
}

0 commit comments

Comments
 (0)