mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-04 03:16:33 +00:00
chore: add cast to satisfy type checker
This commit is contained in:
@@ -35,7 +35,10 @@ local M = {
|
|||||||
---@diagnostic disable-next-line: assign-type-mismatch, param-type-mismatch
|
---@diagnostic disable-next-line: assign-type-mismatch, param-type-mismatch
|
||||||
ret.id = ret.id
|
ret.id = ret.id
|
||||||
.. " "
|
.. " "
|
||||||
.. (type(ret.pattern) == "string" and ret.pattern or table.concat(ret.pattern, ", "))
|
.. (
|
||||||
|
type(ret.pattern) == "string" and ret.pattern
|
||||||
|
or table.concat(ret.pattern --[[@as table]], ", ")
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user