Skip to content

Commit

Permalink
refactor(findByPath): remove strange if
Browse files Browse the repository at this point in the history
We already checking it at 13 line.
  • Loading branch information
floatdrop committed Aug 17, 2014
1 parent a53c30c commit e63089b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ DepsGraph.prototype.contains = function (bem) {
};

DepsGraph.prototype.findByPath = function (path) {
if (typeof path !== 'string') {
throw new Error('path parameter is not a string');
}

var object = this.contains(path);
if (object) { return object; }

Expand Down

0 comments on commit e63089b

Please sign in to comment.