mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
eslint, prettier fix
This commit is contained in:
parent
bdc4450b72
commit
2679fa20d5
10 changed files with 284 additions and 208 deletions
|
@ -12,7 +12,8 @@ function main() {
|
|||
|
||||
for (const file of files) {
|
||||
try {
|
||||
const fileSize = fs.statSync(`../charts/${file}`)['size'] / 1024;
|
||||
const fileSize =
|
||||
fs.statSync(`../charts/${file}`)['size'] / 1024;
|
||||
folderSize += fileSize;
|
||||
|
||||
if (folderSize > config['currency']['chart']['max_size']) {
|
||||
|
@ -20,7 +21,9 @@ function main() {
|
|||
fs.unlinkSync(`../charts/${files[i]}`);
|
||||
}
|
||||
}
|
||||
} catch { return; }
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -29,4 +32,4 @@ schedule.scheduleJob('9 20 * * *', async function () {
|
|||
main();
|
||||
});
|
||||
|
||||
main();
|
||||
main();
|
||||
|
|
Loading…
Add table
Reference in a new issue