Skip to content

Commit

Permalink
+ TODO -> THINK
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Nov 24, 2010
1 parent bcd3b5b commit 25a1935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/lib/picky/cacher/partial/substring.rb
Expand Up @@ -83,8 +83,8 @@ def generate_from index

# 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!

Expand All @@ -99,14 +99,14 @@ def generate_from index
#
# "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
Expand Down

0 comments on commit 25a1935

Please sign in to comment.