Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Fix linting error

Russ Garrettbffea4f0b760
diff --git a/web/src/style/stylehelpers.ts b/web/src/style/stylehelpers.ts
index 8682932..1fa975f 100644
--- a/web/src/style/stylehelpers.ts
+++ b/web/src/style/stylehelpers.ts
@@ -84,9 +84,7 @@ export function match(
): ExpressionSpecification {
// The following contortion is required to satisfy the typechecker.
const cases_flat = cases.slice(1).flat() as (
- | ExpressionInputType
- | ExpressionInputType[]
- | ExpressionSpecification
+ ExpressionInputType | ExpressionInputType[] | ExpressionSpecification
)[]
return ['match', property, cases[0][0], cases[0][1], ...cases_flat, fallback]
}