Skip to content

Commit

Permalink
refactor(server/inventory): remove "in" unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jun 3, 2024
1 parent 82ff412 commit 0c8469d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,10 @@ lib.callback.register('ox_inventory:removeAmmoFromWeapon', function(source, slot
end)

local function checkStashProperties(properties)
local name, slots, maxWeight, coords in properties
local name = properties.name
local slots = properties.slots
local maxWeight = properties.maxWeight
local coords = properties.coords

if type(name) ~= 'string' then
error(('received %s for stash name (expected string)'):format(type(name)))
Expand Down

0 comments on commit 0c8469d

Please sign in to comment.