Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
Credo suggestion
  • Loading branch information
m1foley committed Aug 21, 2024
1 parent a23ad27 commit 222eaa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mjw/core/game_state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ defmodule Mjw.GameState do
defp waiting_for_players({game, state}), do: {game, state}

defp picking_winds({game, :tbd}) do
if !Enum.empty?(Mjw.Game.remaining_winds_to_pick(game)) do
{game, :picking_winds}
else
if Enum.empty?(Mjw.Game.remaining_winds_to_pick(game)) do
{game, :tbd}
else
{game, :picking_winds}
end
end

Expand Down

0 comments on commit 222eaa2

Please sign in to comment.