Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ChatDisabled committed Dec 24, 2023
1 parent a81b39e commit 991452c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions modules/hooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
if not lib.checkDependency('ox_lib', '3.8.0', true) then error() return end

local eventHooks = {}
-- luacheck: ignore
local microtime = os.microtime

local function triggerEventHooks(event, payload)
Expand Down
16 changes: 8 additions & 8 deletions server/queue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ end
local joiningPlayers = {}
local joiningPlayerCount = 0

---@param license string
local function removePlayerJoining(license)
if joiningPlayers[license] then
joiningPlayerCount -= 1
end
joiningPlayers[license] = nil
end

---@param license string
local function awaitPlayerJoinsOrDisconnects(license)
local joiningData
Expand Down Expand Up @@ -86,14 +94,6 @@ local function updatePlayerJoining(source, license)
joiningPlayers[license] = { source = source, timestamp = os.time() }
end

---@param license string
local function removePlayerJoining(license)
if joiningPlayers[license] then
joiningPlayerCount -= 1
end
joiningPlayers[license] = nil
end

---@type table<string, true>
local timingOut = {}

Expand Down

0 comments on commit 991452c

Please sign in to comment.