Skip to content

Commit 697beeb

Browse files
committed
Remove unnecessary if check
We know that input files are always ordered, so any id must be larger than the one before.
1 parent 42e03d8 commit 697beeb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/progress-display.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ class progress_display_t
2929

3030
std::size_t add(osmid_t id) noexcept
3131
{
32-
if (id > max) {
33-
max = id;
34-
}
32+
max = id;
3533
if (count == 0) {
3634
start = std::time(nullptr);
3735
}

0 commit comments

Comments
 (0)