Don't return on caught error

This commit is contained in:
confused-Techie 2023-09-03 20:00:58 -07:00
parent 6f1cd600e0
commit 4c0f5a7511

View File

@ -39,9 +39,7 @@ module.exports = class AtomProtocolHandler {
try {
const stat = fs.statSync(assetsPath);
if (stat && stat.isFile()) filePath = assetsPath;
} catch (e) {
return false;
}
} catch (e) {}
}
if (!filePath) {
@ -50,9 +48,7 @@ module.exports = class AtomProtocolHandler {
try {
const stat = fs.statSync(filePath);
if (stat && stat.isFile()) break;
} catch (e) {
return false;
}
} catch (e) {}
}
}