chore: add cast to satisfy type checker

This commit is contained in:
Marc Jakobi
2024-06-05 16:52:37 +02:00
parent 3555cc2083
commit 3bedc2e8f6
+4 -1
View File
@@ -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