lib/skunk/rubycritic/analysed_module.rb in skunk-0.4.1 vs lib/skunk/rubycritic/analysed_module.rb in skunk-0.4.2
- old
+ new
@@ -39,9 +39,9 @@
# Returns the value of churn times cost.
#
# @return [Integer]
def churn_times_cost
safe_churn = churn.positive? ? churn : 1
- @churn_times_cost ||= safe_churn * cost
+ @churn_times_cost ||= (safe_churn * cost).round(2)
end
end
end