diff --git a/interfaces/kits/js/src/mod_fs/properties/utimes.cpp b/interfaces/kits/js/src/mod_fs/properties/utimes.cpp index 04277c96413e1dc24a1c2e8c2c20e0823064f68c..b73e1ab7074d4cb2c857ca0449d398907767dec1 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);