Skip to content

Commit

Permalink
Merge e968e39 into 62100ce
Browse files Browse the repository at this point in the history
  • Loading branch information
QuotableWater7 committed Jun 28, 2016
2 parents 62100ce + e968e39 commit 192024c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ TrailingComma:
AccessModifierIndentation:
EnforcedStyle: outdent

SingleLineBlockParams:
Enabled: false

MethodLength:
Max: 15

Expand Down
4 changes: 1 addition & 3 deletions lib/email_repair/mechanic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def repair_all(emails)
def repair(email)
return unless email

repairs.each { |repair| email = repair.repair(email) }

email
repairs.reduce(email) { |memo, repair| repair.repair(memo) }
end

class CommonMistakeRepair
Expand Down

0 comments on commit 192024c

Please sign in to comment.