Skip to content

Commit

Permalink
Merge pull request #3 from azamtoiri/deepsource-fix-930968be
Browse files Browse the repository at this point in the history
Refactor useless `else` block in the loop
  • Loading branch information
azamtoiri committed Oct 18, 2022
2 parents 9394c44 + 2aa0235 commit 927e563
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -28,8 +28,7 @@ def search(self, x): # SEARCH ELEMENT
if temp.data == x:
return True
temp = temp.next
else:
return False
return False

def delete_node(self, data): # NOT WORKS
temp = self.head
Expand Down Expand Up @@ -74,4 +73,4 @@ def delete_tail(self): # DELETE TAIL

print("\nDelete Tail ")
family.delete_tail()
family.traversal()
family.traversal()

0 comments on commit 927e563

Please sign in to comment.