Skip to content

Commit ecbe527

Browse files
davidrohrcbmsw
authored andcommitted
Fix coding rule violations
1 parent f027be1 commit ecbe527

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Detectors/TPC/calibration/src/TPCFastSpaceChargeCorrectionHelper.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,12 +794,15 @@ std::unique_ptr<o2::gpu::TPCFastSpaceChargeCorrection> TPCFastSpaceChargeCorrect
794794

795795
auto addEdge = [&](int iy1, int iz1, int iy2, int iz2, int nPoints) {
796796
// add n points on the edge between two voxels excluding the voxel points
797-
if (nPoints < 1)
797+
if (nPoints < 1) {
798798
return;
799-
if (iy1 < 0 || iy1 >= nY2Xbins || iz1 < 0 || iz1 >= nZ2Xbins)
799+
}
800+
if (iy1 < 0 || iy1 >= nY2Xbins || iz1 < 0 || iz1 >= nZ2Xbins) {
800801
return;
801-
if (iy2 < 0 || iy2 >= nY2Xbins || iz2 < 0 || iz2 >= nZ2Xbins)
802+
}
803+
if (iy2 < 0 || iy2 >= nY2Xbins || iz2 < 0 || iz2 >= nZ2Xbins) {
802804
return;
805+
}
803806
auto& data1 = vSectorData[iSector * nRows + iRow][iy1 * nZ2Xbins + iz1];
804807
auto& vox1 = vRowVoxels[iy1 * nZ2Xbins + iz1];
805808
auto& data2 = vSectorData[iSector * nRows + iRow][iy2 * nZ2Xbins + iz2];

0 commit comments

Comments
 (0)