mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Remove needless try-catch
This commit is contained in:
parent
4d9a99d436
commit
2d7a37f802
10
src/index.ts
10
src/index.ts
@ -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;
|
||||
}
|
||||
const db = require('./db/mongodb').default;
|
||||
mongoDBLogger.info('Successfully connected');
|
||||
db.close();
|
||||
|
||||
return config;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user