forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
35eff07c80
commit
c08fe03ed0
422 changed files with 31594 additions and 43019 deletions
|
@ -33,16 +33,16 @@ async function main(args: string[]) {
|
|||
const json = JSON.parse(rawContents)
|
||||
Utils.WalkPath(path, json, (found) => {
|
||||
removedLanguages.push(file)
|
||||
console.log("Removing ",found)
|
||||
console.log("Removing ", found)
|
||||
return undefined
|
||||
})
|
||||
const lastChar = rawContents.endsWith("\n") ? "\n" : ""
|
||||
fs.writeFileSync(file, JSON.stringify(json, null, " ") + lastChar)
|
||||
}
|
||||
if(removedLanguages.length === 0){
|
||||
console.warn("No items removed. Doublecheck the paths")
|
||||
}else{
|
||||
console.log("Removed items in "+removedLanguages.join(", "))
|
||||
if (removedLanguages.length === 0) {
|
||||
console.warn("No items removed. Doublecheck the paths")
|
||||
} else {
|
||||
console.log("Removed items in " + removedLanguages.join(", "))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue