lib/picky/internals/indexing/index.rb in picky-2.4.2 vs lib/picky/internals/indexing/index.rb in picky-2.4.3
- old
+ new
@@ -96,9 +96,11 @@
# Decides whether to use a parallel indexer or whether to
# delegate to each category to index themselves.
#
def index!
+ # TODO Duplicated in category.rb def indexer.
+ #
if source.respond_to?(:each)
warn %Q{\n\033[1mWarning\033[m, source for index "#{name}" is empty: #{source} (responds true to empty?).\n} if source.respond_to?(:empty?) && source.empty?
index_parallel
else
categories.each &:index!
\ No newline at end of file