diff --git a/lua/neotest/client/state/init.lua b/lua/neotest/client/state/init.lua index 976c9e27..10977bfe 100644 --- a/lua/neotest/client/state/init.lua +++ b/lua/neotest/client/state/init.lua @@ -69,7 +69,6 @@ end function NeotestClientState:update_results(adapter_id, results, partial) logger.debug("New results for adapter", adapter_id) logger.trace(results) - local positions = self:positions(adapter_id) self._results[adapter_id] = vim.tbl_extend("force", self._results[adapter_id] or {}, results) if not self._running[adapter_id] then self._running[adapter_id] = {} diff --git a/lua/nio/tasks.lua b/lua/nio/tasks.lua index 5b305043..0d4ef654 100644 --- a/lua/nio/tasks.lua +++ b/lua/nio/tasks.lua @@ -126,10 +126,12 @@ function nio.tasks.run(func, cb) local _, nargs, err_or_fn = unpack(yielded) if type(err_or_fn) ~= "function" then - error("Async internal error: expected function, got %s\nContext: %s\n%s"):format( - type(err_or_fn), - vim.inspect(yielded), - debug.traceback(co) + error( + ("Async internal error: expected function, got %s\nContext: %s\n%s"):format( + type(err_or_fn), + vim.inspect(yielded), + debug.traceback(co) + ) ) end