3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

refactor(*): removed unused exception variables

This commit is contained in:
Almeida 2021-05-01 15:45:20 +01:00
parent edd78fc9c6
commit 04f1e996f2
29 changed files with 35 additions and 35 deletions

View file

@ -4,11 +4,11 @@ const path = require('path');
try {
fs.accessSync(path.resolve(__dirname, 'bot.env'));
require('dotenv').config({ path: path.resolve(__dirname, 'bot.env') });
} catch (e) {
} catch {
try {
fs.accessSync(path.resolve(__dirname, 'api.env'));
require('dotenv').config({ path: path.resolve(__dirname, 'api.env') });
} catch (e) {
} catch {
throw new Error("bot.env or api.env required");
}
}