Skip to content

Commit

Permalink
simpler remove logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Beyad committed May 10, 2017
1 parent 9e29820 commit c37d9b8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ private List<SnapshotInfo> buildSimpleSnapshotInfos(final Set<SnapshotId> toReso
final List<SnapshotInfo> currentSnapshots) {
List<SnapshotInfo> snapshotInfos = new ArrayList<>();
for (SnapshotInfo snapshotInfo : currentSnapshots) {
if (toResolve.contains(snapshotInfo.snapshotId())) {
if (toResolve.remove(snapshotInfo.snapshotId())) {
snapshotInfos.add(snapshotInfo.basic());
toResolve.remove(snapshotInfo.snapshotId());
}
}
Map<SnapshotId, List<String>> snapshotsToIndices = new HashMap<>();
Expand Down

0 comments on commit c37d9b8

Please sign in to comment.