Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kapetan committed Jul 25, 2014
1 parent 54daeba commit 8d9de66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
} else if(record.nextSibling) {
branch.find(record.nextSibling).before(nodes);
} else {
var appendTo = this.target === record.target ? branch.root : branch.find(record.target);
appendTo.empty().append(nodes);
branch.find(record.target).empty().append(nodes);
}

return this._matchSelector(branch.root, nodes).length ? $(record.target) : EMPTY;
Expand Down

0 comments on commit 8d9de66

Please sign in to comment.