Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
  • Loading branch information
pierre-emmanuelJ committed Apr 3, 2024
1 parent 3e7ecbc commit c9ed98f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
accounts[accountsSize+i]["key"] = acc.Key
accounts[accountsSize+i]["secret"] = acc.Secret
accounts[accountsSize+i]["defaultZone"] = acc.DefaultZone
if acc.Environment != "" && acc.Environment != "api" {
accounts[i]["environment"] = acc.Environment
}
if acc.Endpoint != "" {
accounts[i]["endpoint"] = acc.Endpoint
}
if acc.DefaultSSHKey != "" {
accounts[accountsSize+i]["defaultSSHKey"] = acc.DefaultSSHKey
}
conf.Accounts = append(conf.Accounts, acc)
}
}
Expand Down

0 comments on commit c9ed98f

Please sign in to comment.