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:
parent
1023f7e20e
commit
a5897baa2b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user