From a5897baa2b61ae58964f210a9861cfef1b586400 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 27 Feb 2018 23:50:03 -0500 Subject: [PATCH] clean up redundant error handling --- irc/accounts.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/irc/accounts.go b/irc/accounts.go index 5b8a298e..040f8be8 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -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 {