Skip to content
Snippets Groups Projects
Commit 66496c67 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix __heartbeat__ so deep checks succeed when no dependencies are defined

parent c5a24587
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ exports.setup = function(app, options, cb) { ...@@ -18,7 +18,7 @@ exports.setup = function(app, options, cb) {
if (typeof options == 'function') { if (typeof options == 'function') {
cb = options; cb = options;
} else if (options) { } else if (options && options.dependencies) {
dependencies = options.dependencies; dependencies = options.dependencies;
} }
var count = dependencies.length; var count = dependencies.length;
...@@ -67,7 +67,7 @@ exports.setup = function(app, options, cb) { ...@@ -67,7 +67,7 @@ exports.setup = function(app, options, cb) {
} }
// check all dependencies if deep // check all dependencies if deep
if (deep) { if (deep && count) {
for (var i = 0; i < count; i++) { for (var i = 0; i < count; i++) {
check(dependencies[i] + exports.path, checkCB(i)); check(dependencies[i] + exports.path, checkCB(i));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment