File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,7 @@ function Spec:add(plugin, is_dep)
67
67
local c = pkg :sub (1 , 1 )
68
68
if c == " ~" then
69
69
plugin .uri = vim .loop .os_getenv (" HOME" ) .. pkg :sub (2 )
70
- elseif c == " /" then
71
- plugin .uri = pkg
72
- elseif pkg :sub (1 , 4 ) == " http" or pkg :sub (1 , 3 ) == " ssh" then
70
+ elseif c == " /" or pkg :sub (1 , 4 ) == " http" or pkg :sub (1 , 3 ) == " ssh" then
73
71
plugin .uri = pkg
74
72
else
75
73
plugin .uri = (" https://github.com/" .. pkg .. " .git" )
@@ -202,8 +200,7 @@ function M.spec()
202
200
local function _load (name , modpath )
203
201
local modname = Config .options .plugins .. (name and (" ." .. name ) or " " )
204
202
Util .try (function ()
205
- local mod = Module .load (modname , modpath )
206
- spec :normalize (assert (mod ))
203
+ spec :normalize (Module .load (modname , modpath ))
207
204
end , " Failed to load **" .. modname .. " **" )
208
205
end
209
206
You can’t perform that action at this time.
0 commit comments