Skip to content

Commit 0819645

Browse files
committed
:)
1 parent 808e8a6 commit 0819645

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Core/Config/TagsDatabase.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,7 @@ end
423423
local function ShortenUnitName(unit, maxChars)
424424
if not unit or not UnitExists(unit) then return "" end
425425
local unitName = UnitName(unit) or ""
426-
if UUF:IsSecretValue(unitName) then
427-
return unitName
428-
end
426+
if UUF:IsSecretValue(unitName) then return unitName end
429427
if maxChars and maxChars > 0 then
430428
unitName = string.format("%." .. maxChars .. "s", unitName)
431429
end

Core/Globals.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function UUF:CleanTruncateUTF8String(text)
368368
end
369369

370370
function UUF:IsSecretValue(value)
371-
return type(value) == "number" and type(issecretvalue) == "function" and issecretvalue(value)
371+
return value ~= nil and type(issecretvalue) == "function" and issecretvalue(value)
372372
end
373373

374374
function UUF:GetSecondaryPowerType()

0 commit comments

Comments
 (0)