code refactor

This commit is contained in:
MaysWind
2020-11-16 01:28:31 +08:00
parent 84317975c8
commit 88a8961073
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ func (a *AccountsApi) AccountGetHandler(c *core.Context) (interface{}, *errs.Err
accountRespMap[acccountResp.Id] = acccountResp
}
accountResp := accountRespMap[accountGetReq.Id]
accountResp, exists := accountRespMap[accountGetReq.Id]
if accountResp == nil {
if !exists {
return nil, errs.ErrAccountNotFound
}