Skip to content

Commit 48f7a8c

Browse files
committed
#410: termination: cleanup more code---remove unecessary condition
1 parent 4b3a9c6 commit 48f7a8c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/vt/termination/termination.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,10 +1166,7 @@ void TerminationDetector::cleanupReleasedEpoch(EpochType epoch) {
11661166
epoch
11671167
);
11681168
if (is_term) {
1169-
auto iter = epoch_released_.find(epoch);
1170-
if (iter != epoch_released_.end()) {
1171-
epoch_released_.erase(iter);
1172-
}
1169+
epoch_released_.erase(epoch);
11731170
}
11741171
}
11751172
}

0 commit comments

Comments
 (0)