Skip to content

Commit 2a46151

Browse files
github-actionsgithub-actions
authored andcommitted
fixup! Format Python code with psf/black push
1 parent 3dee712 commit 2a46151

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/linked_list/doubly_linked_list.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ def insertHead(self, x):
2323
def deleteHead(self):
2424
temp = self.head
2525
self.head = self.head.next # oldHead <--> 2ndElement(head)
26-
self.head.previous = (
27-
None
28-
) # oldHead --> 2ndElement(head) nothing pointing at it so the old head will be removed
26+
self.head.previous = None # oldHead --> 2ndElement(head) nothing pointing at it so the old head will be removed
2927
if self.head is None:
3028
self.tail = None # if empty linked list
3129
return temp

0 commit comments

Comments
 (0)