Add and appy MultilineOperationIndentation rule

This way it's easier to see when lines are part of multiline
statements and when they belong to `if` statements.
This commit is contained in:
Javi Martín
2023-07-01 17:02:52 +02:00
parent 8b13daad95
commit 32b1fc53e1
14 changed files with 25 additions and 22 deletions

View File

@@ -2,8 +2,8 @@ module PollRecountsHelper
def total_recounts_by_booth(booth_assignment)
if booth_assignment.recounts.any?
booth_assignment.recounts.sum(:total_amount) +
booth_assignment.recounts.sum(:white_amount) +
booth_assignment.recounts.sum(:null_amount)
booth_assignment.recounts.sum(:white_amount) +
booth_assignment.recounts.sum(:null_amount)
end
end
end