chore: remove unused imports/variables

This commit is contained in:
wukko
2024-05-14 13:08:36 +06:00
parent 7db84a15e2
commit 3e5ccea23c
5 changed files with 5 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ let loc = {}
let languages = [];
export async function loadLoc() {
const files = await fs.promises.readdir(locPath).catch((e) => { return [] });
const files = await fs.promises.readdir(locPath).catch(() => []);
files.forEach(file => {
loc[file.split('.')[0]] = loadJSON(`${locPath}/${file}`);
languages.push(file.split('.')[0])