Skip to content

Commit

Permalink
LuaCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Jul 22, 2024
1 parent 6271368 commit 79b5e96
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Baggins-Filtering.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ function Baggins:IsSpecialBag(bag) --luacheck: ignore 212
local _,fam = GetContainerNumFreeSlots(bag)

if Baggins:IsClassicWow() or Baggins:IsTBCWow() or Baggins:IsWrathWow() or Baggins:IsCataWow() then
if type(fam)~="number" then
if type(fam)~="number" then --luacheck: ignore 542
-- assume normal bag
elseif fam==0 then
elseif fam==0 then --luacheck: ignore 542
-- normal bag
elseif fam==1 or fam==2 then -- quiver / ammo
return prefix.."a", fam
Expand Down
2 changes: 1 addition & 1 deletion Baggins-ItemOps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function Baggins:MoveToSpecialtyBags(bank,testonly)
self:ScheduleTimer("MoveToSpecialtyBags", 0.1, bank)
return
end
if bag ~= 5 and C_Container.GetContainerNumFreeSlots(5) > 0 and select(17, GetItemInfo(link)) then
if bag ~= 5 and GetContainerNumFreeSlots(5) > 0 and select(17, GetItemInfo(link)) then
if testonly then return true end
compressLoopProtect = compressLoopProtect - 1
if compressLoopProtect < 0 then return end
Expand Down
5 changes: 3 additions & 2 deletions Baggins-Search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ local itemQualityT = {

function BagginsSearch:Search(search) --luacheck: ignore 212
local itemName, itemQuality, itemLevel, itemType, itemSubType, itemEquipLoc, bindType, expacID, setID
local effectiveILvl, isPreview, baseILvl, GearILevel
local effectiveILvl, baseILvl, GearILevel -- effectiveILvl, isPreview, baseILvl, GearILevel
for _, bag in ipairs(Baggins.bagframes) do --bagid,bag
for _, section in ipairs(bag.sections) do --sectionid, section
for _, button in ipairs(section.items) do --buttonid, button
Expand All @@ -123,7 +123,8 @@ function BagginsSearch:Search(search) --luacheck: ignore 212
--itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount,itemEquipLoc, itemTexture, sellPrice, classID, subclassID, bindType, expacID, setID, isCraftingReagent
if Baggins:IsRetailWow() then
itemName, _, itemQuality, itemLevel, _, itemType, itemSubType, _,itemEquipLoc, _, _, _, _, bindType, expacID, setID = GetItemInfo(link)
effectiveILvl, isPreview, baseILvl = GetDetailedItemLevelInfo(link)
effectiveILvl = select(1,GetDetailedItemLevelInfo(link))
baseILvl = select(3,GetDetailedItemLevelInfo(link))
GearILevel = effectiveILvl or baseILvl or itemLevel or 0
else
itemName, _, itemQuality, itemLevel, _, itemType, itemSubType, _,itemEquipLoc, _, _, _, _, bindType, expacID = GetItemInfo(link)
Expand Down
2 changes: 1 addition & 1 deletion Baggins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2586,7 +2586,7 @@ do

local function Click(_, arg1, arg2)
Baggins:IncludeItemInCategory(arg1, arg2)
self:Baggins_RefreshBags()
Baggins:Baggins_RefreshBags()
end

local dd_categories, dd_id
Expand Down

0 comments on commit 79b5e96

Please sign in to comment.