Skip to content

Commit 18ca59f

Browse files
committed
fixup! feat(files): make file system actions LSP aware
1 parent 6f18571 commit 18ca59f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lua/mini/files.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,9 +2878,7 @@ H.fs_do.create = function(_, path)
28782878
-- Create
28792879
local fs_type = path:sub(-1) == '/' and 'directory' or 'file'
28802880
if fs_type == 'directory' then return vim.fn.mkdir(path) == 1 end
2881-
local success = vim.fn.writefile({}, path) == 0
2882-
2883-
return success
2881+
return vim.fn.writefile({}, path) == 0
28842882
end
28852883

28862884
H.fs_do.copy = function(from, to)

0 commit comments

Comments
 (0)