Apply suggestion from justinmk

This commit is contained in:
Justin M. Keyes
2026-07-05 06:12:02 -04:00
committed by github-actions[bot]
parent f533a17958
commit 83babc720e

View File

@@ -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