From 58a51d59999022fdc05a0b22428124b4f37c07ad Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Mon, 9 Aug 2021 10:09:33 -0400 Subject: [PATCH] fix: don't error on nil val --- lua/plenary/async/control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plenary/async/control.lua b/lua/plenary/async/control.lua index 16f963ec..257ba71a 100644 --- a/lua/plenary/async/control.lua +++ b/lua/plenary/async/control.lua @@ -209,7 +209,7 @@ M.channel.mpsc = function() end local val = deque:popright() deque:clear() - return unpack(val) + return unpack(val or {}) end return Sender, Receiver