forked from MapComplete/MapComplete
Chore: simplify code
This commit is contained in:
parent
c3e5b0c9ec
commit
0a80fd4c3f
2 changed files with 1 additions and 769619 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue