filter out null entries, allowing skipping of OSM read when no profile needs OSM data

pull/822/head
Peter Hanecak 2024-02-28 15:58:28 +01:00
rodzic d703b626ad
commit 80ff95d468
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 8DFCA0FEBE229DE2
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()
);
}