simplify delete account when change name

This commit is contained in:
微凉
2021-11-17 15:25:31 +08:00
parent e8d27a30b4
commit e4d254e4b0
5 changed files with 3 additions and 10 deletions

View File

@ -69,7 +69,6 @@ func (c Cloud189) Items() []Item {
func (c Cloud189) Save(account *model.Account, old *model.Account) error {
if old != nil && old.Name != account.Name {
delete(client189Map, old.Name)
model.DeleteAccountFromMap(old.Name)
}
if err := c.Login(account); err != nil {
account.Status = err.Error()