style: run eslint and prettier
Some checks failed
TrafficCue CI / check (push) Failing after 39s
TrafficCue CI / build (push) Failing after 38s

This commit is contained in:
2025-08-30 13:13:31 +02:00
parent b5804bc9e0
commit 8af4a623b3
10 changed files with 121 additions and 80 deletions

View File

@@ -10,11 +10,11 @@ export function saveLocations() {
export async function geocode(name: string) {
const loc = saved[name];
if(!loc) return;
if (!loc) return;
const geocode = await reverseGeocode(loc);
if(geocode.length == 0) {
if (geocode.length == 0) {
return;
}
const feature = geocode[0];
return `${feature.properties.street}${feature.properties.housenumber ? (" " + feature.properties.housenumber) : ""}, ${feature.properties.city}`;
return `${feature.properties.street}${feature.properties.housenumber ? " " + feature.properties.housenumber : ""}, ${feature.properties.city}`;
}