Skip to content

Commit

Permalink
Fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
jauggy committed Jun 1, 2024
1 parent 08351a1 commit ed2de66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/teiserver/lobby/libs/lobby_restrictions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ defmodule Teiserver.Lobby.LobbyRestrictions do
]
end

@spec check_rank_to_play(any(), any()) :: :ok | {:error, String.t()}
@spec check_rank_to_play(any(), any()) :: :ok | {:error, iodata()}
def check_rank_to_play(user, consul_state) do
state = consul_state

Expand Down Expand Up @@ -160,7 +160,7 @@ defmodule Teiserver.Lobby.LobbyRestrictions do
But with the lobby, we want to use the target team size/count defined by the dropdowns in the lobby.
So if there are two players in the lobby, but the team size dropdown is 8, we want to use the "Team" rating.
"""
@spec check_rating_to_play(any(), any()) :: :ok | {:error, String.t()}
@spec check_rating_to_play(any(), any()) :: :ok | {:error, iodata()}
def check_rating_to_play(user_id, consul_state) do
state = consul_state
team_size = state.host_teamsize
Expand Down

0 comments on commit ed2de66

Please sign in to comment.