mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:50:04 +08:00
fix(job): return 0 for empty table
This commit is contained in:
parent
7ff2fec04a
commit
78e32eb47d
@ -92,6 +92,9 @@ function M.start(cmd, opts)
|
||||
end
|
||||
table.insert(argv, cmd)
|
||||
elseif type(cmd) == 'table' then
|
||||
if #cmd == 0 then
|
||||
return 0
|
||||
end
|
||||
for _, v in ipairs(cmd) do
|
||||
if type(v) ~= 'string' then
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user