[td-225]refactor code: remove useless codes
This commit is contained in:
parent
54890e4815
commit
95c97a5df8
|
@ -384,13 +384,10 @@ int tscProcessLocalCmd(SSqlObj *pSql) {
|
||||||
|
|
||||||
// keep the code in local variable in order to avoid invalid read in case of async query
|
// keep the code in local variable in order to avoid invalid read in case of async query
|
||||||
int32_t code = pSql->res.code;
|
int32_t code = pSql->res.code;
|
||||||
|
if (code == TSDB_CODE_SUCCESS) {
|
||||||
if (pSql->fp != NULL) { // callback function
|
(*pSql->fp)(pSql->param, pSql, 0);
|
||||||
if (code == 0) {
|
} else {
|
||||||
(*pSql->fp)(pSql->param, pSql, 0);
|
tscQueueAsyncRes(pSql);
|
||||||
} else {
|
|
||||||
tscQueueAsyncRes(pSql);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return code;
|
return code;
|
||||||
|
|
Loading…
Reference in New Issue