Chore: formatting

This commit is contained in:
Pieter Vander Vennet 2024-06-16 16:06:26 +02:00
parent 35eff07c80
commit c08fe03ed0
422 changed files with 31594 additions and 43019 deletions

View file

@ -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(", "))
}
}