mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use has helper for checking save method
This commit is contained in:
parent
7b795d7245
commit
c45e4b2e9d
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import dotenv from 'dotenv'
|
|||
import semver from 'semver'
|
||||
import { PromisePool } from '@supercharge/promise-pool'
|
||||
import memoize from 'fast-memoize'
|
||||
// import has from 'just-has'
|
||||
import has from 'just-has'
|
||||
|
||||
import { saveYouTubeVideos } from '~/helpers/api/youtube/build.js'
|
||||
import buildAppList from '~/helpers/build-app-list.js'
|
||||
|
|
@ -502,8 +502,8 @@ class BuildLists {
|
|||
})
|
||||
}
|
||||
|
||||
const hasSaveMethod = listOptions.hasOwnProperty('beforeSave')
|
||||
const saveMethod = hasSaveMethod ? listOptions.beforeSave : listSet => Array.from( listSet )
|
||||
const hasSaveMethod = has( listOptions, 'beforeSave' )
|
||||
|
||||
const [ saveableEntry ] = saveMethod( new Set( [ listEntry ] ) )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue