diff --git a/interfaces/kits/js/src/mod_fs/properties/move.cpp b/interfaces/kits/js/src/mod_fs/properties/move.cpp index dcd1e009d23ef7d73712eab8c084ad5026fcf87b..8185a673f9e0f1076f502a55010ef46f6c7c5b35 100644 --- a/interfaces/kits/js/src/mod_fs/properties/move.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/move.cpp @@ -190,7 +190,6 @@ napi_value Move::Async(napi_env env, napi_callback_info info) return { NVal::CreateUndefined(env) }; }; - NVal thisVar(env, funcArg.GetThisVar()); size_t argc = funcArg.GetArgc(); if (argc == NARG_CNT::TWO || (argc == NARG_CNT::THREE && NVal(env, funcArg[NARG_POS::THIRD]).TypeIs(napi_number))) { diff --git a/interfaces/kits/js/src/mod_fs/properties/open.cpp b/interfaces/kits/js/src/mod_fs/properties/open.cpp index 9545345161f9ab66550ed75e1880b0efe9ed4f5f..65f0701f857f4a892026d3175496fa01aab3a2bb 100644 --- a/interfaces/kits/js/src/mod_fs/properties/open.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/open.cpp @@ -134,7 +134,7 @@ static string GetBundleNameSelf() return bundleName; } -static string GetPathFromFileUri(string path, string bundleName, int mode) +static string GetPathFromFileUri(string path, string bundleName, unsigned int mode) { if (bundleName != GetBundleNameSelf()) { if ((mode & O_WRONLY) == O_WRONLY || (mode & O_RDWR) == O_RDWR) {