clean: game: add semicolon
This commit is contained in:
parent
636a927015
commit
6ed5039025
@ -52,7 +52,7 @@ class Game
|
|||||||
/**
|
/**
|
||||||
* @type {[Player]}
|
* @type {[Player]}
|
||||||
*/
|
*/
|
||||||
this.players = []
|
this.players = [];
|
||||||
|
|
||||||
response_data.players.forEach(player_data => {
|
response_data.players.forEach(player_data => {
|
||||||
this.players.push(new Player(this,
|
this.players.push(new Player(this,
|
||||||
@ -187,7 +187,7 @@ class Game
|
|||||||
|
|
||||||
async _receive_finish(data)
|
async _receive_finish(data)
|
||||||
{
|
{
|
||||||
await this.finish_handler(data)
|
await this.finish_handler(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
async _receive_goal(data)
|
async _receive_goal(data)
|
||||||
@ -200,10 +200,10 @@ class Game
|
|||||||
this.players.forEach(player => {
|
this.players.forEach(player => {
|
||||||
if (data.player_id === player.id)
|
if (data.player_id === player.id)
|
||||||
{
|
{
|
||||||
player_found = player
|
player_found = player;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
player_found.score.push(data.timestamp);
|
player_found.score.push(data.timestamp);
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ class Game
|
|||||||
else if (data.detail === "goal")
|
else if (data.detail === "goal")
|
||||||
await this._receive_goal(data);
|
await this._receive_goal(data);
|
||||||
else if (data.detail === "finish")
|
else if (data.detail === "finish")
|
||||||
await this._receive_finish(data)
|
await this._receive_finish(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
_init_game(data)
|
_init_game(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user