code cleanup: rubocop: fix Layout/SpaceAfterSemicolon in app/models/mail_handler.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18657 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-14 14:51:48 +00:00
parent 0b3bbd0e62
commit 70965412a6
2 changed files with 1 additions and 6 deletions

View File

@@ -351,11 +351,6 @@ Layout/SpaceAfterComma:
Layout/SpaceAfterNot: Layout/SpaceAfterNot:
Enabled: false Enabled: false
# Cop supports --auto-correct.
Layout/SpaceAfterSemicolon:
Exclude:
- 'app/models/mail_handler.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes. # Configuration parameters: EnforcedStyleInsidePipes.
# SupportedStylesInsidePipes: space, no_space # SupportedStylesInsidePipes: space, no_space

View File

@@ -560,7 +560,7 @@ class MailHandler < ActionMailer::Base
unless user.valid? unless user.valid?
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank? user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
user.firstname = "-" unless user.errors[:firstname].blank? user.firstname = "-" unless user.errors[:firstname].blank?
(puts user.errors[:lastname];user.lastname = "-") unless user.errors[:lastname].blank? (puts user.errors[:lastname]; user.lastname = "-") unless user.errors[:lastname].blank?
end end
user user