Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Oct 12, 2023
1 parent 8371339 commit c72f014
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Client/mods/deathmatch/logic/luadefs/CLuaDiscordDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ bool CLuaDiscordDefs::SetStartTime(unsigned long iSecondsSinceEpoch)
}
bool CLuaDiscordDefs::SetPartySize(int iSize, int iMax)
{
if (iMax < 0)
throw std::invalid_argument("Max size must be greater than or equal to 0");

if (iSize > iMax)
throw std::invalid_argument("Party size must be less than or equal to max party size");

Expand Down

0 comments on commit c72f014

Please sign in to comment.