Skip to content

Commit

Permalink
fix: don't error on nil val
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Aug 9, 2021
1 parent cb54f27 commit 58a51d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plenary/async/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58a51d5

Please sign in to comment.