0
0
Fork 0

Update ESLint and RuboCop in Code Climate (#12534)

This commit is contained in:
Yamagishi Kazutoshi 2019-12-03 02:25:43 +09:00 committed by Eugen Rochko
parent 27d5d02925
commit 6be16d02cb
6 changed files with 13 additions and 6 deletions

View file

@ -44,7 +44,7 @@ class LanguageDetector
words = text.scan(RELIABLE_CHARACTERS_RE)
if words.present?
words.reduce(0) { |acc, elem| acc + elem.size }.to_f / text.size.to_f > 0.3
words.reduce(0) { |acc, elem| acc + elem.size }.to_f / text.size > 0.3
else
false
end