Skip to content

Commit

Permalink
Fix spads_controller type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jauggy committed Jun 10, 2024
1 parent be169e6 commit aefd83a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/teiserver_web/controllers/api/spads_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defmodule TeiserverWeb.API.SpadsController do
alias Teiserver.Config
alias Teiserver.{Account, Coordinator, Battle}
alias Teiserver.Battle.{BalanceLib, MatchLib}
alias Teiserver.Data.Types, as: T
import Teiserver.Helper.NumberHelper, only: [int_parse: 1]
require Logger

Expand Down Expand Up @@ -216,8 +217,6 @@ defmodule TeiserverWeb.API.SpadsController do
end
end

defp get_member_lobby(nil), do: nil

@spec get_member_lobby(non_neg_integer()) :: T.lobby() | nil
defp get_member_lobby(userid) do
case Account.get_client_by_id(userid) do
Expand Down

0 comments on commit aefd83a

Please sign in to comment.