From 0133c96d22da51df990c63477c4c9bd3d4c96582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Tue, 15 Mar 2016 00:18:18 -0300 Subject: [PATCH] Remove unneeded parenthesis --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index e27564c..d9aa6b4 100644 --- a/client.js +++ b/client.js @@ -86,7 +86,7 @@ function Client (peerId, port, torrent, opts) { return new HTTPTracker(self, announceUrl) } else if (protocol === 'udp:' && typeof UDPTracker === 'function') { return new UDPTracker(self, announceUrl) - } else if (((protocol === 'ws:') || protocol === 'wss:') && webrtcSupport) { + } else if ((protocol === 'ws:' || protocol === 'wss:') && webrtcSupport) { // Don't try to add http tracker on an https website if (protocol === 'ws:' && location && location.protocol && location.protocol === 'https:') { process.nextTick(function () {