chore: fix stylua ci
This commit is contained in:
@@ -140,8 +140,10 @@ end
|
|||||||
|
|
||||||
_resolve_map[function(val)
|
_resolve_map[function(val)
|
||||||
return type(val) == "table" and val["max"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
|
return type(val) == "table" and val["max"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
|
||||||
end] =
|
end] = function(
|
||||||
function(selector, val)
|
selector,
|
||||||
|
val
|
||||||
|
)
|
||||||
return function(...)
|
return function(...)
|
||||||
local selected = select(selector, ...)
|
local selected = select(selector, ...)
|
||||||
return math.min(math.floor(val[1] * selected), val["max"])
|
return math.min(math.floor(val[1] * selected), val["max"])
|
||||||
@@ -150,8 +152,10 @@ end] =
|
|||||||
|
|
||||||
_resolve_map[function(val)
|
_resolve_map[function(val)
|
||||||
return type(val) == "table" and val["min"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
|
return type(val) == "table" and val["min"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
|
||||||
end] =
|
end] = function(
|
||||||
function(selector, val)
|
selector,
|
||||||
|
val
|
||||||
|
)
|
||||||
return function(...)
|
return function(...)
|
||||||
local selected = select(selector, ...)
|
local selected = select(selector, ...)
|
||||||
return math.max(math.floor(val[1] * selected), val["min"])
|
return math.max(math.floor(val[1] * selected), val["min"])
|
||||||
|
|||||||
Reference in New Issue
Block a user