File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 423423local 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
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ function UUF:CleanTruncateUTF8String(text)
368368end
369369
370370function 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 )
372372end
373373
374374function UUF :GetSecondaryPowerType ()
You can’t perform that action at this time.
0 commit comments