mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:40:06 +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
|
end
|
||||||
table.insert(argv, cmd)
|
table.insert(argv, cmd)
|
||||||
elseif type(cmd) == 'table' then
|
elseif type(cmd) == 'table' then
|
||||||
|
if #cmd == 0 then
|
||||||
|
return 0
|
||||||
|
end
|
||||||
for _, v in ipairs(cmd) do
|
for _, v in ipairs(cmd) do
|
||||||
if type(v) ~= 'string' then
|
if type(v) ~= 'string' then
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user