From dfb1a16e9ec1400796dae86c548f6ed6bb1aa63a Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 25 Feb 2017 23:26:40 +0000 Subject: [PATCH] One-line an if statement --- src/client/voice/VoiceConnection.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index fd2eb864a..a2348ccbf 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -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;