From a74f7502023182c6b5cddb0e6932d795eb878d8d Mon Sep 17 00:00:00 2001 From: yangziyong Date: Sat, 1 Jun 2024 20:55:49 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E5=AE=89=E5=85=A8=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=9E=E9=80=80=5Fjs=5Fdrag=5Fcontroller.c?= =?UTF-8?q?pp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangziyong Change-Id: Iacf5a199d63719fcfa8fae85ce80691b741bbdc4 --- interfaces/napi/kits/drag_controller/js_drag_controller.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/interfaces/napi/kits/drag_controller/js_drag_controller.cpp b/interfaces/napi/kits/drag_controller/js_drag_controller.cpp index 88535ee1dae..a8e4d3fab37 100644 --- a/interfaces/napi/kits/drag_controller/js_drag_controller.cpp +++ b/interfaces/napi/kits/drag_controller/js_drag_controller.cpp @@ -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;