Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Nov 18, 2023
1 parent dc62285 commit 9fc6ee8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function GetSharedInventory(name)
end

function AddSharedInventory(society)
if type(society) ~= 'table' or not society?.name or not society?.label then
if type(society) ~= 'table' or not society?.name or not society?.label then
return
end
-- society (array) containing name (string) and label (string)
Expand All @@ -115,7 +115,7 @@ AddEventHandler('esx_addoninventory:getSharedInventory', function(name, cb)
cb(GetSharedInventory(name))
end)

AddEventHandler('esx:playerLoaded', function(playerId, xPlayer)
AddEventHandler('esx:playerLoaded', function(_, xPlayer)
local addonInventories = {}

for i=1, #InventoriesIndex, 1 do
Expand Down

0 comments on commit 9fc6ee8

Please sign in to comment.