Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
from-the-river-to-the-sea committed Mar 18, 2017
1 parent e348cbc commit cb1854e
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions index.js
Expand Up @@ -162,19 +162,17 @@ module.exports.init = function (rootPath, nodecgVersion, nodecgConfig, Logger) {
});

// Once all the bowerPromises have been resolved, start up the bundle watcher and emit "allLoaded"
return Promise.all(bowerPromises)
.then(() => {
watcher.add([
bundlesPath + '/**/dashboard/**', // Watch dashboard folders
bundlesPath + '/**/package.json' // Watch bundle package.json files
]);
})
.catch(
/* istanbul ignore next */
err => {
log.error(err.stack);
}
);
return Promise.all(bowerPromises).then(() => {
watcher.add([
bundlesPath + '/**/dashboard/**', // Watch dashboard folders
bundlesPath + '/**/package.json' // Watch bundle package.json files
]);
}).catch(
/* istanbul ignore next */
err => {
log.error(err.stack);
}
);
};

/**
Expand Down Expand Up @@ -209,7 +207,7 @@ module.exports.add = function (bundle) {
return;
}

// remove any existing bundles with this name
// Remove any existing bundles with this name
if (module.exports.find(bundle.name)) {
module.exports.remove(bundle.name);
}
Expand Down

0 comments on commit cb1854e

Please sign in to comment.