]> git.openstreetmap.org Git - rails.git/blobdiff - lib/rich_text.rb
Bump eslint from 8.47.0 to 8.48.0
[rails.git] / lib / rich_text.rb
index 8950c68888bafd65f2f61355164838ef29d39508..a0c4d9c8debc70fb3a39c6a32d7ffecf7b9aa867 100644 (file)
@@ -44,9 +44,9 @@ module RichText
         doc.content.include?(phrase)
       end
 
-      [link_proportion - 0.2, 0.0].max * 200 +
-        link_count * 40 +
-        spammy_phrases * 40
+      ([link_proportion - 0.2, 0.0].max * 200) +
+        (link_count * 40) +
+        (spammy_phrases * 40)
     end
 
     protected