From 18c87cfcb46506620728d5ae53378f0b615b097f Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 1 Oct 2023 09:52:36 +0000 Subject: [PATCH] style(js): Object.hasOwn() --- src/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.js b/src/build.js index 4bd7bba..034bbf5 100644 --- a/src/build.js +++ b/src/build.js @@ -133,7 +133,7 @@ const f = async () => { const oisd = async () => { await mkdir(publicPath, { recursive: true }) - if (Object.prototype.hasOwnProperty.call(envVar, 'CI_PROJECT_PATH') && envVar.CI_PROJECT_PATH === 'malware-filter/malware-filter') { + if (Object.hawown(envVar, 'CI_PROJECT_PATH') && envVar.CI_PROJECT_PATH === 'malware-filter/malware-filter') { await Promise.all(Object.entries(oisdFilters).map(([link, filename]) => { return oisdDl(link, filename) })) } }