ci: typing and formatting

This commit is contained in:
Barrett Ruth 2026-03-10 23:24:42 -04:00
parent d043c6aaee
commit 3af2e0d4c1

View file

@ -252,18 +252,12 @@ function M.fetch_metadata(ref, callback)
if result.code ~= 0 or not result.stdout or result.stdout == '' then if result.code ~= 0 or not result.stdout or result.stdout == '' then
local forge_cfg = config.get().forge or {} local forge_cfg = config.get().forge or {}
local backend = _by_name[ref.forge] local backend = _by_name[ref.forge]
if if backend and forge_cfg.warn_missing_cli ~= false and not backend._warned then
backend
and forge_cfg.warn_missing_cli ~= false
and not backend._warned
then
backend._warned = true backend._warned = true
vim.system(backend.auth_status_args, { text = true }, function(auth_result) vim.system(backend.auth_status_args, { text = true }, function(auth_result)
vim.schedule(function() vim.schedule(function()
if auth_result.code ~= 0 then if auth_result.code ~= 0 then
log.warn( log.warn(('%s not authenticated — run `%s`'):format(backend.cli, backend.auth_cmd))
('%s not authenticated — run `%s`'):format(backend.cli, backend.auth_cmd)
)
end end
callback(nil) callback(nil)
end) end)
@ -325,7 +319,6 @@ function M.refresh(s)
if cache then if cache then
task._extra._forge_cache = cache task._extra._forge_cache = cache
any_fetched = true any_fetched = true
local forge_cfg = config.get().forge or {}
if if
forge_cfg.close forge_cfg.close
and (cache.state == 'closed' or cache.state == 'merged') and (cache.state == 'closed' or cache.state == 'merged')