Skip to content

Commit b814d87

Browse files
committed
style(cache): removed hack for relative paths
1 parent 5694483 commit b814d87

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lua/lazy/core/cache.lua

-7
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,6 @@ function Cache.find(modname, opts)
231231
local basename = modname:gsub("%.", "/")
232232
local idx = modname:find(".", 1, true)
233233

234-
-- HACK: some plugins try to load invalid relative paths (see #543)
235-
if idx == 1 then
236-
modname = modname:gsub("^%.+", "")
237-
basename = modname:gsub("%.", "/")
238-
idx = modname:find(".", 1, true)
239-
end
240-
241234
local topmod = idx and modname:sub(1, idx - 1) or modname
242235

243236
-- OPTIM: search for a directory first when topmod == modname

0 commit comments

Comments
 (0)