chore: fix stylua ci

This commit is contained in:
Simon Hauser
2023-01-22 09:14:24 +01:00
parent 2f32775405
commit 0e56ea028d

View File

@@ -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"])