Skip to content

Commit

Permalink
style: updated when console log updates user
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Jan 31, 2017
1 parent 447fa78 commit 7ab4c69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/lib/npm/nodeDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
dependencies = require(path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, 'package.json')).dependencies

// only run once
if (getPackageInstalled()) {
return
}
if (getPackageInstalled()) return

// install node modules
console.log('BRANCH SDK: Installing node dependencies')
var modules = getNodeModulesToInstall(dependencies)
if (modules.length === 0) return deferral.promise

console.log('BRANCH SDK: Installing node dependencies')
installNodeModules(modules, function (err) {
if (err) {
// handle error
Expand Down

0 comments on commit 7ab4c69

Please sign in to comment.