chore: code optimization

This commit is contained in:
kailixu 2023-07-03 20:39:50 +08:00
parent 64281ece98
commit cd494803ee
1 changed files with 21 additions and 22 deletions

View File

@ -90,8 +90,12 @@ static int32_t hbUpdateUserAuthInfo(SAppHbMgr *pAppHbMgr, SUserAuthBatchRsp *bat
break;
}
}
if (!pRsp) {
releaseTscObj(pReq->connKey.tscRid);
break;
}
if (pRsp) {
}
pTscObj->authVer = pRsp->version;
if (pTscObj->sysInfo != pRsp->sysInfo) {
@ -112,11 +116,6 @@ static int32_t hbUpdateUserAuthInfo(SAppHbMgr *pAppHbMgr, SUserAuthBatchRsp *bat
atomic_load_32(&passInfo->ver), pTscObj->id);
}
}
} else {
releaseTscObj(pReq->connKey.tscRid);
break;
}
releaseTscObj(pReq->connKey.tscRid);
}
}