Skip to content

Commit 222eaa2

Browse files
committed
Minor refactor
Credo suggestion
1 parent a23ad27 commit 222eaa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mjw/core/game_state.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ defmodule Mjw.GameState do
2525
defp waiting_for_players({game, state}), do: {game, state}
2626

2727
defp picking_winds({game, :tbd}) do
28-
if !Enum.empty?(Mjw.Game.remaining_winds_to_pick(game)) do
29-
{game, :picking_winds}
30-
else
28+
if Enum.empty?(Mjw.Game.remaining_winds_to_pick(game)) do
3129
{game, :tbd}
30+
else
31+
{game, :picking_winds}
3232
end
3333
end
3434

0 commit comments

Comments
 (0)