mirror of
https://github.com/nvim-tree/nvim-tree.lua
synced 2024-09-16 14:34:03 +02:00
refactor(#2731): resolve warnings
This commit is contained in:
parent
517e4fbb9e
commit
9c0526b7b0
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ local M = {}
|
|||
local function create_and_notify(file)
|
||||
events._dispatch_will_create_file(file)
|
||||
local ok, fd = pcall(vim.loop.fs_open, file, "w", 420)
|
||||
if not ok then
|
||||
if not ok or type(fd) ~= "number" then
|
||||
notify.error("Couldn't create file " .. notify.render_path(file))
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue