Skip to content

Commit f375ff3

Browse files
committed
removed unnecessary condition
1 parent ad6b7eb commit f375ff3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

chapter05/05-CircularLinkedList.js

-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ function CircularLinkedList() {
6464
}
6565
node.next = current;
6666
previous.next = node;
67-
68-
if (node.next === null){ //update in case last element
69-
node.next = head;
70-
}
7167
}
7268

7369
length++; //update size of list

0 commit comments

Comments
 (0)