From 222eaa2b5155f964e7f13f4a01e0239c74f956d0 Mon Sep 17 00:00:00 2001 From: Michael Foley Date: Tue, 20 Aug 2024 22:52:11 -0700 Subject: [PATCH] Minor refactor Credo suggestion --- lib/mjw/core/game_state.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mjw/core/game_state.ex b/lib/mjw/core/game_state.ex index 14873f2..363e4fe 100644 --- a/lib/mjw/core/game_state.ex +++ b/lib/mjw/core/game_state.ex @@ -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