Skip to content

Commit b52a4af

Browse files
committed
refactor(#2731): resolve warnings
1 parent ccfd2dc commit b52a4af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/nvim-tree/utils.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ function M.debounce(context, timeout, callback)
406406
end
407407

408408
local timer = vim.loop.new_timer()
409+
if not timer then
410+
return
411+
end
409412
debouncer.timer = timer
410413
timer:start(timeout, 0, function()
411414
timer_stop_close(timer)

0 commit comments

Comments
 (0)