mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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:
parent
0b3bbd0e62
commit
70965412a6
@ -351,11 +351,6 @@ Layout/SpaceAfterComma:
|
||||
Layout/SpaceAfterNot:
|
||||
Enabled: false
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceAfterSemicolon:
|
||||
Exclude:
|
||||
- 'app/models/mail_handler.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleInsidePipes.
|
||||
# SupportedStylesInsidePipes: space, no_space
|
||||
|
||||
@ -560,7 +560,7 @@ class MailHandler < ActionMailer::Base
|
||||
unless user.valid?
|
||||
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].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
|
||||
|
||||
user
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user