From 3513227a9a41c8e6366e1719f4cefbe891ca73d2 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 29 Jun 2024 10:36:35 +0200 Subject: [PATCH] fix(async): remove debug assert --- lua/lazy/async.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/lazy/async.lua b/lua/lazy/async.lua index 356f4b1..58145a6 100644 --- a/lua/lazy/async.lua +++ b/lua/lazy/async.lua @@ -153,9 +153,7 @@ end function M.running() local co = coroutine.running() if co then - local async = M._threads[co] - assert(async, "In coroutine without async context") - return async + return M._threads[co] end end