Chore: formatting

This commit is contained in:
Pieter Vander Vennet 2025-01-11 02:38:18 +01:00
parent 1f384e754b
commit dce838b130
2 changed files with 13 additions and 8 deletions

View file

@ -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)
} }
} }

View file

@ -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
} }