Skip to content

Commit

Permalink
refactor: remove error-silencing try/catch on event handler imports (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
voces committed Apr 30, 2021
1 parent 5397021 commit cdcc50f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client/websocket/handlers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit cdcc50f

Please sign in to comment.