summaryrefslogtreecommitdiff
path: root/lib/feed2imap/cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feed2imap/cache.rb')
-rw-r--r--lib/feed2imap/cache.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/feed2imap/cache.rb b/lib/feed2imap/cache.rb
index 1534483..c984a5d 100644
--- a/lib/feed2imap/cache.rb
+++ b/lib/feed2imap/cache.rb
@@ -105,7 +105,6 @@ class CachedChannel
updateditems = []
items.each { |i| i.cacheditem ||= CachedItem::new(i) }
items.each do |i|
- # TODO rewrite with the fact that break can return a value
found = false
# Try to find a perfect match
@items.each do |j|
@@ -119,7 +118,7 @@ class CachedChannel
# Try to find an updated item
@items.each do |j|
if i.link and i.link == j.link
- # TODO use a better heuristic ?
+ # Do we need a better heuristic ?
i.cacheditem.index = j.index
i.cacheditem.updated = true
updateditems.push(i)