clean: respect es11
This commit is contained in:
@ -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 };
|
||||
|
@ -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 };
|
Reference in New Issue
Block a user