Skip to content

Commit 0133c96

Browse files
committed
Remove unneeded parenthesis
1 parent 3d84d44 commit 0133c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Client (peerId, port, torrent, opts) {
8686
return new HTTPTracker(self, announceUrl)
8787
} else if (protocol === 'udp:' && typeof UDPTracker === 'function') {
8888
return new UDPTracker(self, announceUrl)
89-
} else if (((protocol === 'ws:') || protocol === 'wss:') && webrtcSupport) {
89+
} else if ((protocol === 'ws:' || protocol === 'wss:') && webrtcSupport) {
9090
// Don't try to add http tracker on an https website
9191
if (protocol === 'ws:' && location && location.protocol && location.protocol === 'https:') {
9292
process.nextTick(function () {

0 commit comments

Comments
 (0)