Skip to content

Commit

Permalink
fix(server): type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 13, 2024
1 parent 11a5467 commit 9dad0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ end
---@param invType string
---@param data? string|number|table
---@param ignoreSecurityChecks boolean?
---@return boolean|table|nil
---@return table?
---@return table | false | nil, table | false | nil, string?
local function openInventory(source, invType, data, ignoreSecurityChecks)
if Inventory.Lock then return false end

Expand Down Expand Up @@ -141,6 +140,7 @@ local function openInventory(source, invType, data, ignoreSecurityChecks)
right = Inventory(('evidence-%s'):format(data))
end
elseif invType == 'dumpster' then
---@cast data string
right = Inventory(data)

if not right then
Expand Down

0 comments on commit 9dad0f5

Please sign in to comment.