refactor(*): remove unused exception variables (#193)
This commit is contained in:
parent
38ab38645b
commit
a4a7eb41b0
29 changed files with 35 additions and 35 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue