fix(cli): avoid vet shadow
This commit is contained in:
parent
ecef6a0f10
commit
8e878fe485
@ -18,9 +18,10 @@ func requireAccount(flags *RootFlags) (string, error) {
|
||||
}
|
||||
|
||||
if store, err := openSecretsStoreForAccount(); err == nil {
|
||||
if v, err := store.GetDefaultAccount(); err == nil {
|
||||
if v := strings.TrimSpace(v); v != "" {
|
||||
return v, nil
|
||||
if defaultEmail, err := store.GetDefaultAccount(); err == nil {
|
||||
defaultEmail = strings.TrimSpace(defaultEmail)
|
||||
if defaultEmail != "" {
|
||||
return defaultEmail, nil
|
||||
}
|
||||
}
|
||||
if toks, err := store.ListTokens(); err == nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user