fix spurious error message

This commit is contained in:
Shivaram Lingamneni 2019-07-12 11:49:01 -04:00
parent ecf945038f
commit 80aa77372b

@ -114,7 +114,7 @@ func (am *AccountManager) buildNickToAccountIndex() {
err := json.Unmarshal([]byte(rawPrefs), &prefs)
if err == nil && prefs.NickEnforcement != NickEnforcementOptional {
accountToMethod[account] = prefs.NickEnforcement
} else {
} else if err != nil {
am.server.logger.Error("internal", "corrupt account creds", account)
}
}