lib/picky/cacher/partial/substring.rb in picky-0.12.1 vs lib/picky/cacher/partial/substring.rb in picky-0.12.2
- old
+ new
@@ -81,12 +81,12 @@
generate_for token, index, result
end
# Remove duplicate ids.
#
- # TODO If it is unique for a subtoken, it is
- # unique for all derived longer tokens.
+ # THINK If it is unique for a subtoken, it is
+ # unique for all derived longer tokens.
#
result.each_value &:uniq!
result
end
@@ -97,17 +97,17 @@
# :test, :tes, :te, :t
# add all ids of :test
#
# "token" here means just text.
#
- # TODO Could be improved by appending the aforegoing ids?
+ # THINK Could be improved by appending the aforegoing ids?
#
def generate_for token, index, result
@generator.each_subtoken(token) do |subtoken|
if result[subtoken]
result[subtoken] += index[token] # unique
else
- result[subtoken] = index[token].dup # TODO Spec this dup
+ result[subtoken] = index[token].dup
end
end
end
end
\ No newline at end of file