@@ -10,13 +10,6 @@ local DevTool = addonTable.DevTool
1010--- UTILS
1111---- -------------------------------------------------------------------------------------------
1212
13- function DevTool .normalizeSecretValue (value )
14- if issecrettable (value ) or issecretvalue (value ) then
15- return string.format (" <SECRET %s>" , type (value ))
16- end
17- return value
18- end
19-
2013--- Math
2114
2215function DevTool .round (num , idp )
172165
173166function DevTool .ToUIString (value , name , withoutLineBrakes )
174167 local result
175- value = DevTool .normalizeSecretValue (value )
168+ value = DevTool .normalizeSecretValue (value )
176169 local valueType = type (value )
177170
178171 if valueType == " table" then
@@ -198,7 +191,7 @@ function DevTool.GetObjectInfoFromWoWAPI(helperText, value)
198191 local concat = function (str , before , after )
199192 before = DevTool .normalizeSecretValue (before ) or " "
200193 after = DevTool .normalizeSecretValue (after ) or " "
201- str = DevTool .normalizeSecretValue (str )
194+ str = DevTool .normalizeSecretValue (str )
202195 if str then
203196 return resultStr .. " " .. before .. str .. after
204197 end
@@ -220,7 +213,7 @@ function DevTool.GetObjectInfoFromWoWAPI(helperText, value)
220213 tostring (DevTool .round (height )) .. " ]" )
221214 end
222215
223- name = DevTool .normalizeSecretValue (name )
216+ name = DevTool .normalizeSecretValue (name )
224217
225218 if helperText ~= name then
226219 resultStr = concat (name , DevTool .colors .gray :WrapTextInColorCode (" <" ), DevTool .colors .gray :WrapTextInColorCode (" >" ))
@@ -296,3 +289,10 @@ function DevTool.GetParentTable(info)
296289
297290 return parent
298291end
292+
293+ function DevTool .normalizeSecretValue (value )
294+ if (issecrettable and issecrettable (value )) or (issecretvalue and issecretvalue (value )) then
295+ return string.format (" <SECRET %s>" , type (value ))
296+ end
297+ return value
298+ end
0 commit comments