mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
One-line an if statement
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user