diff --git a/data_structures/linked_lists/doubly_linked_list.rb b/data_structures/linked_lists/doubly_linked_list.rb index 35be177..7e349f2 100644 --- a/data_structures/linked_lists/doubly_linked_list.rb +++ b/data_structures/linked_lists/doubly_linked_list.rb @@ -146,7 +146,6 @@ class DoublyLinkedList print "#{head.val} --> " if head.next.nil? puts("nil\n") - nil else print_values(head.next) end