Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarchena committed May 24, 2015
1 parent 0b2ab08 commit e5e54df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/dependency-factory.js
Expand Up @@ -26,6 +26,7 @@ DependencyFactory.prototype = (function () {
//console.log(err);
configJson = null;
} else {
/* istanbul ignore next */
throw err;
}
}
Expand Down
5 changes: 2 additions & 3 deletions lib/dependency.js
Expand Up @@ -26,6 +26,7 @@ Dependency.prototype = {
* @param {Dependency} dependency Child dependency
*/
addDependency: function(dependency){
/* istanbul ignore if */
if (this.hasDependency(dependency)) {
return -1;
}
Expand All @@ -47,9 +48,7 @@ Dependency.prototype = {
if (dependency.isEqualTo(d)) {
return true;
} else if (typeof deep !== 'undefined' && deep === true){
if (d.hasDependency(dependency, deep)) {
return true;
}
return d.hasDependency(dependency, deep);
}
}
return false;
Expand Down

0 comments on commit e5e54df

Please sign in to comment.