Skip to content

Commit

Permalink
Dropping superfluous condition in tree.select
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Apr 26, 2015
1 parent fdf11f0 commit 3730644
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/baobab.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ Baobab.prototype.createFacet = function(definition, scope) {
};

Baobab.prototype.select = function(path) {
if (!path)
throw Error('Baobab.select: invalid path.');

if (arguments.length > 1)
path = helpers.arrayOf(arguments);

Expand Down

0 comments on commit 3730644

Please sign in to comment.