small improvements

This commit is contained in:
NoM0Re
2025-06-28 16:13:24 +02:00
parent 3bdc6512b7
commit fec17c0f2f
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -339,10 +339,10 @@ local sorters = {
Private.ActivateAuraEnvironment(data.id)
local ok, result = pcall(sortFunc, a, b)
Private.ActivateAuraEnvironment()
if not ok then
Private.GetErrorHandlerId(data.id, L["Custom Sort"])
else
if ok then
return result
else
Private.GetErrorHandlerId(data.id, L["Custom Sort"])
end
end, sortOn
end
@@ -428,7 +428,7 @@ local anchorers = {
return function(frames, activeRegions)
Private.ActivateAuraEnvironment(data.id)
local ok, ret = pcall(anchorFunc, frames, activeRegions)
local ok = pcall(anchorFunc, frames, activeRegions)
if not ok then
Private.GetErrorHandlerUid(data.uid, L["Custom Anchor"])
end
@@ -982,7 +982,7 @@ local growers = {
end
return function(newPositions, activeRegions)
Private.ActivateAuraEnvironment(data.id)
local ok, ret = pcall(growFunc, newPositions, activeRegions)
local ok = pcall(growFunc, newPositions, activeRegions)
Private.ActivateAuraEnvironment()
if not ok then
Private.GetErrorHandlerId(data.id, L["Custom Grow"])