1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Clean up a bunch of linting stuff. Clean up event listeners in tooltips to stop potential memory leaks.

This commit is contained in:
SirStendec 2018-04-02 03:30:22 -04:00
parent f506b512b4
commit 7ecd45fcfb
23 changed files with 70 additions and 79 deletions

View file

@ -107,12 +107,13 @@ export default class SocketClient extends Module {
selectHost() {
const cluster_id = this.settings.get('socket.cluster'),
cluster = WS_CLUSTERS[cluster_id];
cluster = WS_CLUSTERS[cluster_id],
l = cluster && cluster.length;
if ( ! cluster || ! cluster.length )
if ( ! l )
return null;
let total = 0, i = cluster.length, l = i;
let total = 0, i = l;
while(i-- > 0)
total += cluster[i][1];