chore: add prettier formatting
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m56s

This commit is contained in:
zv
2026-06-14 20:26:56 +02:00
parent 8bbd9397a1
commit ee55521803
79 changed files with 2451 additions and 969 deletions

View File

@@ -1,8 +1,4 @@
import {
normalizeHydroStation,
normalizeSynopStation,
normalizeWarning,
} from "@/lib/weather-utils";
import { normalizeHydroStation, normalizeSynopStation, normalizeWarning } from "@/lib/weather-utils";
import type {
HydroStation,
MeteoStationPosition,
@@ -66,7 +62,7 @@ export async function fetchWarnings(signal?: AbortSignal): Promise<WeatherWarnin
fetchWarningsByKind("meteo", signal),
fetchWarningsByKind("hydro", signal),
]);
const warnings = results.flatMap((result) => result.status === "fulfilled" ? result.value : []);
const warnings = results.flatMap((result) => (result.status === "fulfilled" ? result.value : []));
if (results.every((result) => result.status === "rejected")) {
throw new Error("Nie udało się pobrać ostrzeżeń IMGW.");
}