mirror of
https://github.com/neovim/neovim.git
synced 2026-08-01 05:09:08 +00:00
Apply suggestion from justinmk
This commit is contained in:
committed by
github-actions[bot]
parent
f533a17958
commit
83babc720e
@@ -246,7 +246,7 @@ local function git_cmd(cmd, cwd)
|
||||
local sys_opts = { cwd = cwd, text = true, env = env, clear_env = true }
|
||||
local out = async.await(3, vim.system, cmd, sys_opts) --- @type vim.SystemCompleted
|
||||
async.await(1, vim.schedule)
|
||||
local stderr = vim.nonnil(out.stderr, '')
|
||||
local stderr = out.stderr or ''
|
||||
if out.code ~= 0 then
|
||||
error(stderr)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user