Skip to content

Commit

Permalink
Update bin/install-addons.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Imms <[email protected]>
  • Loading branch information
jerch and Tyriar authored Oct 25, 2019
1 parent d733ce3 commit 04f828b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/install-addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ if (fs.existsSync(addonsPath)) {
let packageJson;
try {
packageJson = require(path.join(addonPath, 'package.json'));
} catch (e) {}
} catch (e) {
// swallow as changing branches can leave folders around
}
if (packageJson
&& (
(packageJson.devDependencies && Object.keys(packageJson.devDependencies).length)
Expand Down

0 comments on commit 04f828b

Please sign in to comment.