Fix rubocop warnings

This commit is contained in:
Tom Hughes 2019-07-07 16:30:04 +01:00
parent d7f92e163e
commit 6f9b0c2f6b
2 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ module RichText
link_size += link.content.length
end
link_proportion = link_size.to_f / doc.content.length.to_f
link_proportion = link_size.to_f / doc.content.length
end
spammy_phrases = SPAMMY_PHRASES.count do |phrase|