From 516488e84f1f8cf3f9f8f6c8149438a64b85e040 Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Mon, 27 Jan 2025 03:31:52 +0100 Subject: [PATCH] remove redundant code --- WeakAuras/BuffTrigger2.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/BuffTrigger2.lua b/WeakAuras/BuffTrigger2.lua index d6bb578..e99720c 100644 --- a/WeakAuras/BuffTrigger2.lua +++ b/WeakAuras/BuffTrigger2.lua @@ -2291,7 +2291,7 @@ local function createScanFunc(trigger) local names = {} for index, spellName in ipairs(trigger.ignoreAuraNames) do local spellId = WeakAuras.SafeToNumber(spellName) - local name = spellId and GetSpellInfo(spellId or 0) or spellName + local name = spellId and GetSpellInfo(spellId) or spellName tinsert(names, name) end @@ -2411,7 +2411,7 @@ function BuffTrigger.Add(data) names = {} for index, spellName in ipairs(trigger.auranames) do local spellId = WeakAuras.SafeToNumber(spellName) - names[index] = spellId and GetSpellInfo(spellId or 0) or spellName + names[index] = spellId and GetSpellInfo(spellId) or spellName end end