Remove needless try-catch
This commit is contained in:
parent
a3bd039bcf
commit
3df86fdab3
@ -110,13 +110,9 @@ async function init(): Promise<Config> {
|
||||
|
||||
// Try to connect to MongoDB
|
||||
let mongoDBLogger = new Logger('MongoDB');
|
||||
try {
|
||||
const db = require('./db/mongodb').default;
|
||||
mongoDBLogger.info('Successfully connected');
|
||||
db.close();
|
||||
} catch (e) {
|
||||
throw e;
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user