We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9658486 commit 47d4baaCopy full SHA for 47d4baa
lua/lazy/manage/task/fs.lua
@@ -13,7 +13,7 @@ M.clean = {
13
assert(dir:find(Config.options.root, 1, true) == 1, self.plugin.dir .. " should be under packpath!")
14
15
local stat = vim.loop.fs_lstat(dir)
16
- assert(stat.type == "directory", self.plugin.dir .. " should be a directory!")
+ assert(stat and stat.type == "directory", self.plugin.dir .. " should be a directory!")
17
18
Util.walk(dir, function(path, _, type)
19
if type == "directory" then
0 commit comments