Chore: linting errors

This commit is contained in:
Pieter Vander Vennet 2025-04-15 12:26:34 +02:00
parent 5544f95233
commit 26d8003289

View file

@ -23,7 +23,7 @@ export class UpdateLegacyLayer extends DesugaringStep<
return json
}
context = context.enter(json.id)
let config = { ...json }
const config = { ...json }
if (config["credits"] === "Not logged in") {
delete config["credits"]
@ -100,7 +100,7 @@ export class UpdateLegacyLayer extends DesugaringStep<
config["mapRendering"] = []
// This is a legacy format, lets create a pointRendering
let location: ("point" | "centroid")[] = ["point"]
let wayHandling: number = config["wayHandling"] ?? 0
const wayHandling: number = config["wayHandling"] ?? 0
if (wayHandling !== 0) {
location = ["point", "centroid"]
}