clean up redundant error handling

This commit is contained in:
Shivaram Lingamneni 2018-02-27 23:50:03 -05:00
parent 1023f7e20e
commit a5897baa2b
1 changed files with 0 additions and 3 deletions

View File

@ -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 {