!12 fix community code alarms

Merge pull request !12 from yaojian16/master
This commit is contained in:
openharmony_ci
2021-09-24 09:33:48 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ void CallWorkCallback(napi_env env, napi_value recv, size_t argc, const napi_val
napi_get_named_property(env, recv, type, &callback);
if (NapiValueHelp::IsCallable(env, callback)) {
napi_value callbackResult = nullptr;
napi_call_function(env, recv, callback, 1, argv, &callbackResult);
napi_call_function(env, recv, callback, argc, argv, &callbackResult);
}
}
+1 -1
View File
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "worker_runner.h"
#include <list>