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
|
||||
local forge_cfg = config.get().forge or {}
|
||||
local backend = _by_name[ref.forge]
|
||||
if
|
||||
backend
|
||||
and forge_cfg.warn_missing_cli ~= false
|
||||
and not backend._warned
|
||||
then
|
||||
if backend and forge_cfg.warn_missing_cli ~= false and not backend._warned then
|
||||
backend._warned = true
|
||||
vim.system(backend.auth_status_args, { text = true }, function(auth_result)
|
||||
vim.schedule(function()
|
||||
if auth_result.code ~= 0 then
|
||||
log.warn(
|
||||
('%s not authenticated — run `%s`'):format(backend.cli, backend.auth_cmd)
|
||||
)
|
||||
log.warn(('%s not authenticated — run `%s`'):format(backend.cli, backend.auth_cmd))
|
||||
end
|
||||
callback(nil)
|
||||
end)
|
||||
|
|
@ -325,7 +319,6 @@ function M.refresh(s)
|
|||
if cache then
|
||||
task._extra._forge_cache = cache
|
||||
any_fetched = true
|
||||
local forge_cfg = config.get().forge or {}
|
||||
if
|
||||
forge_cfg.close
|
||||
and (cache.state == 'closed' or cache.state == 'merged')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue