fix warnings

This commit is contained in:
Elizabeth Hunt 2023-05-29 13:21:36 -07:00
parent cdd02424f4
commit 81d04d34ca
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()