From afc7808c88735bee5dcfba948afb8279ccdaa65a Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 27 Nov 2022 16:57:01 +0100 Subject: [PATCH] libdebuff: remove obsolete string concatenation Fixup of the previous commit. Seems like `tonumber` does already take care of the leading space inside the rank. --- libs/libdebuff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index e9ca3bd4..f9f9bacf 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -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]