Skip to content

Commit 24c8322

Browse files
committed
fix(meta): no need to check for old_dir when frags were not built yet. Fixes #1550
1 parent 4ca3e9a commit 24c8322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/meta.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function M:add(plugin)
8989

9090
table.insert(meta._.frags, fragment.id)
9191

92-
if meta._ and meta._.rtp_loaded then
92+
if meta._ and meta._.rtp_loaded and meta.dir then
9393
local old_dir = meta.dir
9494
self:_rebuild(meta.name)
9595
local new_dir = meta.dir

0 commit comments

Comments
 (0)