server/src/modules/listener/index.js
Function create
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create() {
const emitter = new EventEmitter();
const listen = (fn) => emitter.addListener(globalName, fn);
const unlisten = (fn) => emitter.removeListener(globalName, fn);