We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f18571 commit 18ca59fCopy full SHA for 18ca59f
1 file changed
lua/mini/files.lua
@@ -2878,9 +2878,7 @@ H.fs_do.create = function(_, path)
2878
-- Create
2879
local fs_type = path:sub(-1) == '/' and 'directory' or 'file'
2880
if fs_type == 'directory' then return vim.fn.mkdir(path) == 1 end
2881
- local success = vim.fn.writefile({}, path) == 0
2882
-
2883
- return success
+ return vim.fn.writefile({}, path) == 0
2884
end
2885
2886
H.fs_do.copy = function(from, to)
0 commit comments