Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(accessErr: NodeJS.ErrnoException | null) => {
if (!accessErr) {
return res();
}
if (accessErr.code !== "ENOENT") {
return rej(accessErr);
}
prebuildInstall.download(url, { pkg, path: pkgRoot }, (err: Error) => {
err ? rej(err) : res();
});
},
);