Chore: simplify code

This commit is contained in:
Pieter Vander Vennet 2025-04-17 22:27:19 +02:00
parent c3e5b0c9ec
commit 0a80fd4c3f
2 changed files with 1 additions and 769619 deletions

File diff suppressed because it is too large Load diff

View file

@ -362,11 +362,7 @@ class NsiLogos extends Script {
private async patchNsiFile() {
const files = NsiLogos.downloadedFiles()
let path = "./public/assets/data/nsi/nsi.min.json"
const otherPath = "./assets/data/nsi/nsi.min.json"
if (existsSync(otherPath) && !existsSync(path)) {
path = otherPath
}
const path = "./public/assets/data/nsi/nsi.min.json"
const nsi = JSON.parse(readFileSync(path, "utf8"))
const types = nsi.nsi