Skip to content

Commit

Permalink
Updated specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jauggy committed Jun 1, 2024
1 parent 98d5b85 commit 08351a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/teiserver/lobby/libs/lobby_restrictions.ex
Original file line number Diff line number Diff line change
@@ -197,7 +197,8 @@ defmodule Teiserver.Lobby.LobbyRestrictions do
@doc """
You cannot have all welcome lobby name if there are restrictions
"""
@spec check_lobby_name(String.t(), any()) :: {:error, String.t()} | {:ok, String.t()}
@spec check_lobby_name(String.t(), any()) ::
{:error, String.t()} | {:ok, String.t()} | {:ok, nil}
def check_lobby_name(name, consul_state) do
cond do
has_restrictions?(consul_state) and allwelcome_name?(name) ->

0 comments on commit 08351a1

Please sign in to comment.