Skip to content

Commit ccfd2dc

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/nvim-tree/live-filter.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ local function reset_filter(node_)
2727
:iterate()
2828
end
2929

30-
local overlay_bufnr = nil
31-
local overlay_winnr = nil
30+
local overlay_bufnr = 0
31+
local overlay_winnr = 0
3232

3333
local function remove_overlay()
3434
if view.View.float.enable and view.View.float.quit_on_focus_loss then
@@ -46,8 +46,8 @@ local function remove_overlay()
4646

4747
vim.api.nvim_win_close(overlay_winnr, true)
4848
vim.api.nvim_buf_delete(overlay_bufnr, { force = true })
49-
overlay_bufnr = nil
50-
overlay_winnr = nil
49+
overlay_bufnr = 0
50+
overlay_winnr = 0
5151

5252
if M.filter == "" then
5353
M.clear_filter()

0 commit comments

Comments
 (0)