One-line an if statement

This commit is contained in:
Amish Shah
2017-02-25 23:26:40 +00:00
committed by GitHub
parent 275c9953a0
commit dfb1a16e9e

View File

@@ -319,9 +319,7 @@ class VoiceConnection extends EventEmitter {
ws.removeAllListeners('speaking');
}
if (udp) {
udp.removeAllListeners('error');
}
if (udp) udp.removeAllListeners('error');
this.sockets.ws = null;
this.sockets.udp = null;