mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Don't return on caught error
This commit is contained in:
parent
6f1cd600e0
commit
4c0f5a7511
@ -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) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user