fix(ci): format
This commit is contained in:
parent
b6f3398bbc
commit
c192afc5d7
1 changed files with 24 additions and 28 deletions
|
|
@ -42,15 +42,12 @@ local function run_scraper(platform, subcommand, args, opts)
|
|||
local buf = ''
|
||||
|
||||
local handle
|
||||
handle = uv.spawn(
|
||||
cmd[1],
|
||||
{
|
||||
handle = uv.spawn(cmd[1], {
|
||||
args = vim.list_slice(cmd, 2),
|
||||
stdio = { nil, stdout, stderr },
|
||||
env = env,
|
||||
cwd = plugin_path,
|
||||
},
|
||||
function(code, signal)
|
||||
}, function(code, signal)
|
||||
if buf ~= '' and opts.on_event then
|
||||
local ok_tail, ev_tail = pcall(vim.json.decode, buf)
|
||||
if ok_tail then
|
||||
|
|
@ -70,8 +67,7 @@ local function run_scraper(platform, subcommand, args, opts)
|
|||
if handle and not handle:is_closing() then
|
||||
handle:close()
|
||||
end
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
if not handle then
|
||||
logger.log('Failed to start scraper process', vim.log.levels.ERROR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue