forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
1f384e754b
commit
dce838b130
2 changed files with 13 additions and 8 deletions
|
@ -196,9 +196,11 @@ class DownloadNsiLogos extends Script {
|
||||||
async main(): Promise<void> {
|
async main(): Promise<void> {
|
||||||
const nsi = await NameSuggestionIndex.getNsiIndex()
|
const nsi = await NameSuggestionIndex.getNsiIndex()
|
||||||
const types = ["brand", "operator"]
|
const types = ["brand", "operator"]
|
||||||
|
for (const type of types) {
|
||||||
|
await this.downloadFor(type)
|
||||||
|
}
|
||||||
for (const type of types) {
|
for (const type of types) {
|
||||||
await this.generateRendering(type)
|
await this.generateRendering(type)
|
||||||
// await this.downloadFor(type)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -839,6 +839,9 @@ class LayerOverviewUtils extends Script {
|
||||||
const themeInfo = themeFiles[i]
|
const themeInfo = themeFiles[i]
|
||||||
const themePath = themeInfo.path
|
const themePath = themeInfo.path
|
||||||
let themeFile = themeInfo.parsed
|
let themeFile = themeInfo.parsed
|
||||||
|
if(!themeFile){
|
||||||
|
throw "Got an empty file for"+themeInfo.path
|
||||||
|
}
|
||||||
if (whitelist.size > 0 && !whitelist.has(themeFile.id)) {
|
if (whitelist.size > 0 && !whitelist.has(themeFile.id)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue