clean: respect es11

This commit is contained in:
2024-02-20 09:22:11 +01:00
parent 54ef19a340
commit c143d96443
36 changed files with 163 additions and 163 deletions

View File

@ -65,7 +65,7 @@ class Tourmanent
/**
* @type {Number}
*/
this.id = id
this.id = id;
/**
* @type {Boolean} if a websocket connection is enabled
@ -99,16 +99,16 @@ class Tourmanent
leave(event)
{
if (this.connected == false)
return
return;
this.connected = false;
this._socket.close()
this._socket.close();
this.disconnect_func(event);
}
toggle_participation()
{
if (!this.connected)
return
return;
this._socket.send(JSON.stringify({participate: ""}));
}
@ -143,4 +143,4 @@ class Tourmanent
}
export { Tourmanent }
export { Tourmanent };

View File

@ -11,7 +11,7 @@ class Tourmanents
/**
* @type {Client}
*/
this.client = client
this.client = client;
}
/**
@ -52,7 +52,7 @@ class Tourmanents
async search(state)
{
let response = await this.client._get(`/api/tournaments/search/${state}`);
let response_data = await response.json()
let response_data = await response.json();
if (response.status === 403)
{
@ -88,4 +88,4 @@ class Tourmanents
}
export { Tourmanents }
export { Tourmanents };