From 30105536a6ffe68d05b9e45c67cb10f40587df3f Mon Sep 17 00:00:00 2001 From: Hackzzila Date: Thu, 27 Oct 2016 16:19:20 -0500 Subject: [PATCH] ESLint warnings (#852) --- src/client/voice/VoiceWebSocket.js | 1 - src/structures/Guild.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/voice/VoiceWebSocket.js b/src/client/voice/VoiceWebSocket.js index 1c421a71b..ebc2a3103 100644 --- a/src/client/voice/VoiceWebSocket.js +++ b/src/client/voice/VoiceWebSocket.js @@ -142,7 +142,6 @@ class VoiceWebSocket extends EventEmitter { * Called whenever the connection to the WebSocket Server is lost */ onClose() { - // TODO see if the connection is open before reconnecting if (!this.dead) this.client.setTimeout(this.connect.bind(this), this.attempts * 1000); } diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 58b28cb8a..e78c204e0 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -650,7 +650,7 @@ class Guild { const updatedRoles = this.roles.array().map(r => ({ id: r.id, - position: r.id === role ? position : (r.position < position ? r.position : r.position + 1), + position: r.id === role ? position : r.position < position ? r.position : r.position + 1, })); return this.client.rest.methods.setRolePositions(this.id, updatedRoles);