Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function trashRequiresAsBoolean (electronVersion, dependencyMap) {
return [common.getTrashDepends(electronVersion, dependencyMap).join(' | ')]
}
function trashRequiresAsBoolean (electronVersion, dependencyMap) {
const trashDepends = common.getTrashDepends(electronVersion, dependencyMap)
if (trashDepends.length === 1) {
return [trashDepends[0]]
} else {
return [`(${trashDepends.join(' or ')})`]
}
}