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:
parent
f506b512b4
commit
7ecd45fcfb
23 changed files with 70 additions and 79 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue