mirror of https://github.com/Xhofe/alist
fix: nil pointer while delete baidu account (close #751)
parent
79b5c018ea
commit
4eef9cd9bc
|
@ -76,6 +76,9 @@ func (driver Baidu) Items() []base.Item {
|
|||
}
|
||||
|
||||
func (driver Baidu) Save(account *model.Account, old *model.Account) error {
|
||||
if account == nil {
|
||||
return nil
|
||||
}
|
||||
return driver.RefreshToken(account)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue