mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-13 16:23:31 -07:00
clean up redundant error handling
This commit is contained in:
@@ -354,9 +354,6 @@ func (am *AccountManager) LoadAccount(casefoldedAccount string) (result ClientAc
|
||||
var raw rawClientAccount
|
||||
am.server.store.View(func(tx *buntdb.Tx) error {
|
||||
raw, err = am.loadRawAccount(tx, casefoldedAccount)
|
||||
if err == buntdb.ErrNotFound {
|
||||
err = errAccountDoesNotExist
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user