From 711a42275a4f13cfafa771aeffa6771e0a904e91 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 22:32:32 -0800 Subject: Removed a redundant condition. --- js/lib/node.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'js/lib/node.js') diff --git a/js/lib/node.js b/js/lib/node.js index 89172d7..84fb122 100644 --- a/js/lib/node.js +++ b/js/lib/node.js @@ -44,10 +44,6 @@ NodeWalker.prototype.next = function(){ this.entering = false; } - } else if (!entering && cur === this.root) { - // don't move past root - this.current = null; - } else if (cur.next) { this.current = cur.next; this.entering = true; -- cgit v1.2.3