Skip to content

Commit

Permalink
refactor(server/queue): use not syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Manason <clanerp@gmail.com>
  • Loading branch information
D4isDAVID and Manason committed Dec 10, 2023
1 parent af92d06 commit 0307ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/queue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ local joiningPlayersAmount = 0
---@param source Source
---@param license string
local function updatePlayerJoining(source, license)
if joiningPlayers[license] == nil then
if not joiningPlayers[license] then
joiningPlayersAmount += 1
end
joiningPlayers[license] = { source = source, timestamp = os.time() }
Expand All @@ -109,7 +109,7 @@ end
---Registers that the player with the given license has succesfully joined.
---@param license string
local function registerPlayerJoined(license)
if joiningPlayers[license] ~= nil then
if joiningPlayers[license] then
joiningPlayersAmount -= 1
end
joiningPlayers[license] = nil
Expand Down

0 comments on commit 0307ef6

Please sign in to comment.