clean: game: add semicolon

This commit is contained in:
starnakin 2024-02-27 08:17:02 +01:00 committed by AdrienLSH
parent 636a927015
commit 6ed5039025

View File

@ -52,7 +52,7 @@ class Game
/**
* @type {[Player]}
*/
this.players = []
this.players = [];
response_data.players.forEach(player_data => {
this.players.push(new Player(this,
@ -187,7 +187,7 @@ class Game
async _receive_finish(data)
{
await this.finish_handler(data)
await this.finish_handler(data);
}
async _receive_goal(data)
@ -200,10 +200,10 @@ class Game
this.players.forEach(player => {
if (data.player_id === player.id)
{
player_found = player
player_found = player;
return;
}
})
});
player_found.score.push(data.timestamp);
@ -221,7 +221,7 @@ class Game
else if (data.detail === "goal")
await this._receive_goal(data);
else if (data.detail === "finish")
await this._receive_finish(data)
await this._receive_finish(data);
}
_init_game(data)