refactor: remove error-silencing try/catch on event handler imports (#5542)

This commit is contained in:
Robert Coe
2021-04-30 21:48:19 +02:00
committed by GitHub
parent 5397021efb
commit cdcc50f365
+1 -3
View File
@@ -5,9 +5,7 @@ const { WSEvents } = require('../../../util/Constants');
const handlers = {};
for (const name of Object.keys(WSEvents)) {
try {
handlers[name] = require(`./${name}.js`);
} catch {} // eslint-disable-line no-empty
handlers[name] = require(`./${name}.js`);
}
module.exports = handlers;