Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
askwang committed Jul 16, 2024
1 parent adbc406 commit bfa0090
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,12 @@ public static int findPreviousTag(List<Snapshot> taggedSnapshots, long targetSna
return -1;
}

private static int findNextOrEqualTag(
List<Snapshot> taggedSnapshots, long targetSnapshotId) {
private static int findNextOrEqualTag(List<Snapshot> taggedSnapshots, long targetSnapshotId) {
for (int i = 0; i < taggedSnapshots.size(); i++) {
if (taggedSnapshots.get(i).id() >= targetSnapshotId) {
return i;
}
}
return -1;
}

}

0 comments on commit bfa0090

Please sign in to comment.