From ce619237783b68f1d886837e13992ffd43d73973 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 24 Jun 2021 02:35:41 +0200 Subject: [PATCH] Formatting --- scripts/generateLayerOverview.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index ed4df23ed..b83b28be9 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -47,7 +47,7 @@ class LayerOverviewUtils { errorCount.push("Layer " + layerJson.id + "still uses the old 'overpassTags'-format. Please use \"source\": {\"osmTags\": }' instead of \"overpassTags\": (note: this isn't your fault, the custom theme generator still spits out the old format)") } try { - const layer = new LayerConfig(layerJson, AllKnownLayers.sharedUnits,"test", true) + const layer = new LayerConfig(layerJson, AllKnownLayers.sharedUnits, "test", true) const images = Array.from(layer.ExtractImages()) const remoteImages = images.filter(img => img.indexOf("http") == 0) for (const remoteImage of remoteImages) { @@ -152,7 +152,7 @@ class LayerOverviewUtils { for (const layerFile of layerFiles) { layerErrorCount.push(...this.validateLayer(layerFile.parsed, layerFile.path, knownPaths)) - knownLayerIds.set(layerFile.parsed.id, new LayerConfig(layerFile.parsed,AllKnownLayers.sharedUnits)) + knownLayerIds.set(layerFile.parsed.id, new LayerConfig(layerFile.parsed, AllKnownLayers.sharedUnits)) } let themeErrorCount = [] @@ -213,11 +213,11 @@ class LayerOverviewUtils { const errors = layerErrorCount.concat(themeErrorCount).join("\n") console.log(errors) const msg = (`Found ${layerErrorCount.length} errors in the layers; ${themeErrorCount.length} errors in the themes`) - console.log ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") console.log(msg) - console.log ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") - + console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") + if (process.argv.indexOf("--report") >= 0) { console.log("Writing report!") writeFileSync("layer_report.txt", errors) @@ -230,4 +230,4 @@ class LayerOverviewUtils { } } - new LayerOverviewUtils().main(process.argv) \ No newline at end of file +new LayerOverviewUtils().main(process.argv) \ No newline at end of file