plz no pollute global namespace

This commit is contained in:
RealBeepMcJeep 2023-08-30 08:31:32 -07:00
parent b91bc21d60
commit e1df933368
1 changed files with 4 additions and 4 deletions

View File

@ -5254,7 +5254,7 @@ app.post('/asset_download', jsonParser, async (request, response) => {
// Check category // Check category
let category = null; let category = null;
for (i of validCategories) for (let i of validCategories)
if (i == inputCategory) if (i == inputCategory)
category = i; category = i;
@ -5316,7 +5316,7 @@ app.post('/asset_delete', jsonParser, async (request, response) => {
// Check category // Check category
let category = null; let category = null;
for (i of validCategories) for (let i of validCategories)
if (i == inputCategory) if (i == inputCategory)
category = i; category = i;
@ -5371,7 +5371,7 @@ app.post('/get_character_assets_list', jsonParser, async (request, response) =>
// Check category // Check category
let category = null let category = null
for (i of validCategories) for (let i of validCategories)
if (i == inputCategory) if (i == inputCategory)
category = i category = i
@ -5390,7 +5390,7 @@ app.post('/get_character_assets_list', jsonParser, async (request, response) =>
return filename != ".placeholder"; return filename != ".placeholder";
}); });
for (i of files) for (let i of files)
output.push(`/characters/${name}/${category}/${i}`); output.push(`/characters/${name}/${category}/${i}`);
} }