ci: typing and formatting
This commit is contained in:
parent
d043c6aaee
commit
3af2e0d4c1
1 changed files with 2 additions and 9 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue