fix warnings
This commit is contained in:
parent
cdd02424f4
commit
81d04d34ca
@ -353,7 +353,7 @@ defmodule Chessh.SSH.Client.Game do
|
||||
from,
|
||||
to,
|
||||
%State{
|
||||
game: %Game{game_moves: game_moves, id: game_id, turn: turn},
|
||||
game: %Game{id: game_id, turn: turn},
|
||||
binbo_pid: binbo_pid,
|
||||
flipped: flipped,
|
||||
color: turn
|
||||
|
@ -307,7 +307,7 @@ defmodule Chessh.Web.Endpoint do
|
||||
{:ok, status} ->
|
||||
{:ok, fen} = :binbo.get_fen(binbo_pid)
|
||||
|
||||
{:ok, %Game{status: after_move_status} = game} =
|
||||
{:ok, %Game{} = game} =
|
||||
game
|
||||
|> Game.update_with_status(attempted_move, fen, status)
|
||||
|> Repo.update()
|
||||
|
Loading…
Reference in New Issue
Block a user