Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
releaseFiles.forEach(fileName => {
console.log(fileName);
try {
asar.statFile(archive, fileName);
return true;
} catch (e) {
console.log(e);
throw new Error(`Missing file ${fileName}`);
}
});