libdebuff: remove obsolete string concatenation

Fixup of the previous commit. Seems like `tonumber` does
already take care of the leading space inside the rank.
This commit is contained in:
shagu
2022-11-27 16:57:01 +01:00
parent 31be3ded16
commit afc7808c88
+1 -1
View File
@@ -28,7 +28,7 @@ local lastspell
function libdebuff:GetDuration(effect, rank)
if L["debuffs"][effect] then
local rank = rank and tonumber((string.gsub(rank, RANK .. "", ""))) or 0
local rank = rank and tonumber((string.gsub(rank, RANK, ""))) or 0
local rank = L["debuffs"][effect][rank] and rank or libdebuff:GetMaxRank(effect)
local duration = L["debuffs"][effect][rank]