Fix engine lint
This commit is contained in:
parent
1b6ffd7555
commit
7573169cfc
2 changed files with 3 additions and 6 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue