From 3bedc2e8f6e1b2aa50e4e766d410612a00a0dad4 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Wed, 5 Jun 2024 16:52:37 +0200 Subject: [PATCH] chore: add cast to satisfy type checker --- lua/lz/n/handler/event.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/lz/n/handler/event.lua b/lua/lz/n/handler/event.lua index d67564a..b5e20c1 100644 --- a/lua/lz/n/handler/event.lua +++ b/lua/lz/n/handler/event.lua @@ -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