filter out null entries, allowing skipping of OSM read when no profile needs OSM data (#822)

safe-natural-earth-unzip
Peter Hanecak 2024-02-29 02:58:22 +01:00 zatwierdzone przez GitHub
rodzic d703b626ad
commit 40e64a2fd3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -148,6 +148,7 @@ public record MultiExpression<T> (List<Entry<T>> expressions) implements Simplif
return new MultiExpression<>(
expressions.stream()
.map(entry -> entry(fn.apply(entry.result), entry.expression))
.filter(entry -> entry.result != null)
.toList()
);
}