Skip to content

Commit 1758b37

Browse files
committed
refactor: check for nil timer
1 parent 79899e9 commit 1758b37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/copilot-lsp/util.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ end
1313
---@param delay integer
1414
function M.debounce(fn, delay)
1515
local timer = vim.uv.new_timer()
16+
assert(timer)
17+
1618
return function(...)
1719
local argv = vim.F.pack_len(...)
1820
timer:start(delay, 0, function()

0 commit comments

Comments
 (0)