From 45908fa5d23f4cf6d99c786b9dade801f6d17eb7 Mon Sep 17 00:00:00 2001 From: bubble_mao Date: Tue, 24 Oct 2023 14:36:22 +0800 Subject: [PATCH] =?UTF-8?q?utimes=E6=8E=A5=E5=8F=A3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=91=8A=E8=AD=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bubble_mao --- interfaces/kits/js/src/mod_fs/properties/utimes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/utimes.cpp b/interfaces/kits/js/src/mod_fs/properties/utimes.cpp index b73e1ab70..04277c964 100644 --- a/interfaces/kits/js/src/mod_fs/properties/utimes.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/utimes.cpp @@ -42,7 +42,7 @@ napi_value Utimes::Sync(napi_env env, napi_callback_info info) return nullptr; } - auto [succGetMtime, mtime] = NVal(env, funcArg[NARG_POS::SECOND]).ToDouble();; + auto [succGetMtime, mtime] = NVal(env, funcArg[NARG_POS::SECOND]).ToDouble(); if (!succGetMtime || mtime < 0) { HILOGE("Invalid mtime from JS second argument"); NError(EINVAL).ThrowErr(env); -- Gitee