Skip to content

Commit 4162350

Browse files
Add curly braces for single-line if statements.
1 parent 37625d6 commit 4162350

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Detectors/Upgrades/ALICE3/TRK/base/src/GeometryTGeo.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ void GeometryTGeo::Build(int loadTrans)
171171
continue;
172172
}
173173
auto layerVol = layerNode->GetVolume();
174-
if (layerVol == nullptr)
174+
if (layerVol == nullptr) {
175175
LOG(fatal) << "Could not find layer volume " << Form("%s_1", composeSymNameLayerFT3(iDir, iDisc));
176+
}
176177
TObjArray* nodes = layerVol->GetNodes();
177178
int nNodes = nodes->GetEntriesFast();
178179
int nStaves = 0;
@@ -738,8 +739,9 @@ void GeometryTGeo::extractChipIdsFT3(std::string const volName, int& layer, int&
738739
stave = std::stoi(volName.substr(idx));
739740
idx = volName.find('_', idx) + 1;
740741
chip = std::stoi(volName.substr(idx));
741-
if (direction == 1)
742+
if (direction == 1) {
742743
layer += mNumberOfDisksMLOT / 2;
744+
}
743745
} else {
744746
LOG(error) << "extractChipIdsFT3: Not a sensor volume " << volName;
745747
layer = -1;

0 commit comments

Comments
 (0)