Skip to content

Commit

Permalink
Simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
PJacek committed Oct 15, 2023
1 parent 66d60ab commit fc602c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Classes/SkillListControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ end

function SkillListClass:GetRowIcon(column, index, socketGroup)
if column == 1 then
local slot = socketGroup.slot or nil
local slot = socketGroup.slot
local itemsTab = self.skillsTab.build.itemsTab
local weapon1Sel = itemsTab.activeItemSet["Weapon 1"].selItemId or 0
local weapon1Type = itemsTab.items[weapon1Sel] and itemsTab.items[weapon1Sel].base.type or "None"
Expand All @@ -229,10 +229,6 @@ function SkillListClass:GetRowIcon(column, index, socketGroup)
if slot == "Weapon 2 Swap" and (weapon2SwapType == "Quiver" or weapon2SwapType == "Shield") then
slot = weapon2SwapType.." Swap"
end
if slot_map[slot] then
return slot_map[slot].icon
else
return nil
end
return slot_map[slot] and slot_map[slot].icon
end
end

0 comments on commit fc602c0

Please sign in to comment.