Skip to content

Commit 39cbe0f

Browse files
committed
fix
1 parent f5a04a8 commit 39cbe0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/PubSub/EventEmitterPubSub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function createSubscriber(): any {
4949
// createSubscriber is called once at live query server start
5050
// to avoid max listeners warning, we should clean up the event emitter
5151
// each time this function is called
52-
if (emitter) emitter.removeAllListeners();
52+
emitter.removeAllListeners();
5353
return new Subscriber(emitter);
5454
}
5555

0 commit comments

Comments
 (0)