3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 21:39:25 +01:00

clean up redundant error handling

This commit is contained in:
Shivaram Lingamneni 2018-02-27 23:50:03 -05:00
parent 1023f7e20e
commit a5897baa2b

View File

@ -354,9 +354,6 @@ func (am *AccountManager) LoadAccount(casefoldedAccount string) (result ClientAc
var raw rawClientAccount var raw rawClientAccount
am.server.store.View(func(tx *buntdb.Tx) error { am.server.store.View(func(tx *buntdb.Tx) error {
raw, err = am.loadRawAccount(tx, casefoldedAccount) raw, err = am.loadRawAccount(tx, casefoldedAccount)
if err == buntdb.ErrNotFound {
err = errAccountDoesNotExist
}
return nil return nil
}) })
if err != nil { if err != nil {