Skip to content

Commit a659e97

Browse files
author
ABaldwinHunter
committed
improve clarity with parens; >= for triggering threshold
1 parent 28e35d0 commit a659e97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cc/engine/analyzers/violation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def name
6161
end
6262

6363
def calculate_points
64-
if issue.mass > threshold
65-
base_points + overage * points_per
64+
if issue.mass >= threshold
65+
base_points + (overage * points_per)
6666
else
6767
DEFAULT_POINTS
6868
end

0 commit comments

Comments
 (0)