From d7848ccb3dd7a711459e62c05d4fefd165f34947 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 28 Sep 2026 09:39:47 +0100 Subject: fix(lua): enable unnecessary-assert diagnostic AI-assisted --- runtime/lua/vim/diagnostic/_float.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/diagnostic/_float.lua') diff --git a/runtime/lua/vim/diagnostic/_float.lua b/runtime/lua/vim/diagnostic/_float.lua index a55d54663f..64732c49a5 100644 --- a/runtime/lua/vim/diagnostic/_float.lua +++ b/runtime/lua/vim/diagnostic/_float.lua @@ -27,7 +27,7 @@ local function resolve_float_opts(opts, bufnr) -- with its `opts` table. We create a dedicated options table (`float_opts`) that inherits -- missing keys from the global configuration (`global_diagnostic_options.float`), which can -- be a table or a function. - local global_opts = assert(vim.diagnostic.config()) + local global_opts = vim.diagnostic.config() local float_opts = global_opts.float local resolved_float_opts = type(float_opts) == 'table' and float_opts or (type(float_opts) == 'function' and float_opts(opts.namespace, bufnr) or {}) -- cgit