mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: address verified review findings (auth-config-doctor-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
7 files changed
+113
-6
No files matched your search
@@ -194,7 +194,7 @@ func (a *application) completeAccounts(cmd *cobra.Command, _ []string, toComplet
|
||||
return nil, cobra.ShellCompDirectiveNoFileComp
|
||||
}
|
||||
hosts := snapshot.Hosts.Hosts
|
||||
if t, err := a.resolveTarget(ctx, false, false); err == nil {
|
||||
if t, err := a.instanceTarget(ctx); err == nil {
|
||||
hosts = map[string]settings.Host{t.Host: hosts[t.Host]}
|
||||
}
|
||||
accounts := []cobra.Completion{}
|
||||
|
||||
Reference in new issue
Block a user