style(js): Object.hasOwn()

This commit is contained in:
MDLeom 2023-10-01 09:53:46 +00:00
parent 18c87cfcb4
commit 7cb3cd0567
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ const f = async () => {
const oisd = async () => {
await mkdir(publicPath, { recursive: true })
if (Object.hawown(envVar, 'CI_PROJECT_PATH') && envVar.CI_PROJECT_PATH === 'malware-filter/malware-filter') {
if (Object.hasOwn(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) }))
}
}