Skip to content

Commit 9dd2f54

Browse files
authored
Update CircularDoublyLinkedList.java
removed unnecessary null assignment
1 parent 1328eaf commit 9dd2f54

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/thealgorithms/datastructures/lists/CircularDoublyLinkedList.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public E remove(int pos) {
112112
current.prev.next = current.next;
113113
current.next.prev = current.prev;
114114
E removedValue = current.value;
115-
current = null;
116115
size--;
117116
return removedValue;
118117
}

0 commit comments

Comments
 (0)