mirror of
https://github.com/zoriya/lz.n.git
synced 2026-05-23 06:47:14 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user