remove nil

This commit is contained in:
Vitor Oliveira 2021-03-01 16:44:18 -08:00 committed by GitHub
parent 1d84acbabf
commit 32706822fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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