mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 17:43:09 +02:00
Remove needless try-catch
This commit is contained in:
parent
a3bd039bcf
commit
3df86fdab3
1 changed files with 3 additions and 7 deletions
|
@ -110,13 +110,9 @@ async function init(): Promise<Config> {
|
||||||
|
|
||||||
// Try to connect to MongoDB
|
// Try to connect to MongoDB
|
||||||
let mongoDBLogger = new Logger('MongoDB');
|
let mongoDBLogger = new Logger('MongoDB');
|
||||||
try {
|
|
||||||
const db = require('./db/mongodb').default;
|
const db = require('./db/mongodb').default;
|
||||||
mongoDBLogger.info('Successfully connected');
|
mongoDBLogger.info('Successfully connected');
|
||||||
db.close();
|
db.close();
|
||||||
} catch (e) {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue