mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-11-16 19:50:00 +01:00
remove nil
This commit is contained in:
parent
1d84acbabf
commit
32706822fa
1 changed files with 0 additions and 1 deletions
|
@ -146,7 +146,6 @@ class DoublyLinkedList
|
||||||
print "#{head.val} --> "
|
print "#{head.val} --> "
|
||||||
if head.next.nil?
|
if head.next.nil?
|
||||||
puts("nil\n")
|
puts("nil\n")
|
||||||
nil
|
|
||||||
else
|
else
|
||||||
print_values(head.next)
|
print_values(head.next)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue