mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-24 10:11:53 +01:00
Fix ConcurrentModificationException in #673
This commit is contained in:
parent
91aa730673
commit
94b5d0d393
@ -36,7 +36,6 @@ public class GeoInfoMutator {
|
||||
if (geoInfo.isEmpty()) {
|
||||
return Optional.empty();
|
||||
}
|
||||
geoInfo.sort(new GeoInfoComparator());
|
||||
return Optional.of(geoInfo.get(0));
|
||||
return geoInfo.stream().min(new GeoInfoComparator());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user