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