Fix engine lint

This commit is contained in:
Lucas Mello 2021-07-28 23:58:28 -03:00
commit 7573169cfc
2 changed files with 3 additions and 6 deletions

View file

@ -1049,7 +1049,7 @@ function getBaseState(G: GameState): GameState {
return baseState;
}
function prettyShipPosition(G: GameState, data: ShipPosition, simple: boolean = false): string {
function prettyShipPosition(G: GameState, data: ShipPosition, simple = false): string {
switch (data) {
case ShipPosition.Island:
return 'the island harbor';

View file

@ -72,16 +72,13 @@ export function currentPlayer(G: GameState) {
}
export function messages(G: GameState) {
const messages = (G as any).messages || [];
delete (G as any).messages;
return {
messages,
messages: [],
data: G,
};
}
export function logLength(G: GameState, player?: number) {
export function logLength(G: GameState, _player?: number) {
return G.log.length;
}