Fix:安全告警修改回退_js_drag_controller.cpp

Signed-off-by: yangziyong <nsyangziyong@huawei.com>
Change-Id: Iacf5a199d63719fcfa8fae85ce80691b741bbdc4
This commit is contained in:
yangziyong 2024-06-01 20:55:49 +08:00
parent 4ec857b0aa
commit a74f750202

View File

@ -1378,9 +1378,6 @@ bool CheckAndParseParams(DragControllerAsyncCtx* asyncCtx, std::string& errMsg)
{
// Check the number of the argument
CHECK_NULL_RETURN(asyncCtx, false);
if (errMsg.empty()) {
return false;
}
if ((asyncCtx->argc != 2) && (asyncCtx->argc != argCount3)) {
errMsg = "The number of parameters must be 2 or 3.";
return false;