Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
PJacek committed Oct 15, 2023
1 parent 6f891c7 commit 66d60ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Classes/TradeQuery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,9 @@ function TradeQueryClass:PullLeagueList()
self:SetNotice(self.controls.pbNotice, "Failed to Get PoE League List response")
return
end
table.sort(json_data, function(a, b)
table.sort(json_data, function(a, b)
if a.endAt == nil then return false end
if b.endAt == nil then return true end
if a.endAt == b.endAt then
return #a.id < #b.id
end
return #a.id < #b.id
end)
self.itemsTab.leagueDropList = {}
Expand Down

0 comments on commit 66d60ab

Please sign in to comment.