lib/taskinator/tasks.rb in taskinator-0.0.13 vs lib/taskinator/tasks.rb in taskinator-0.0.14
- old
+ new
@@ -33,10 +33,10 @@
def each(&block)
return to_enum(__method__) unless block_given?
current = @head
- while current != nil
+ while current
yield current
current = current.next
end
end