Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
lazyRequire.canSyncInstall = function canSyncInstall(opts, next) {
// Prepare
;[opts, next] = extractOptsAndCallback(opts, next)
let result = safeps.hasSpawnSync()
let error = null
// Fetch
if (result instanceof Error) {
error = result
result = null
}
// Complete
return complete(error, result, next)
}