Skip to content

Commit 7dab4f5

Browse files
committed
Collapse if statements
1 parent 4b22481 commit 7dab4f5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tree/tree/src/TBranchElement.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5466,21 +5466,21 @@ void TBranchElement::SetActionSequence(TClass *originalClass, TStreamerInfo *loc
54665466

54675467
if (!isSplitNode)
54685468
fNewIDs.erase(fNewIDs.begin());
5469-
else if (fType != 3 && fType != 4) {
5469+
5470+
else if (fInitOffsets && fType != 3 && fType != 4) {
54705471
// fObject has the address of the sub-object but the streamer action have
54715472
// offset relative to the parent.
54725473

54735474
// Note: We skipped this for the top node of split collection because the
54745475
// sequence is about the content, we need to review what happens where an
54755476
// action related to the collection itself will land.
54765477
TBranchElement *parent = dynamic_cast<TBranchElement*>(GetMother()->GetSubBranch(this));
5477-
if (fInitOffsets) {
5478-
auto index = parent->fBranches.IndexOf(this);
5479-
if (index >= 0) {
5480-
actionSequence->AddToOffset( - parent->fBranchOffset[index] );
5481-
}
5482-
} // else it will be done by InitOffsets
5483-
}
5478+
5479+
auto index = parent->fBranches.IndexOf(this);
5480+
if (index >= 0) {
5481+
actionSequence->AddToOffset( - parent->fBranchOffset[index] );
5482+
}
5483+
} // else it will be done by InitOffsets
54845484
}
54855485

54865486
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)