summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 14:51:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 14:51:48 +0000
commit70965412a696dcbd93847df40e5d4bfcc50e30fd (patch)
tree7269d5fd7addc0c61406ff83c6b632606eb73d39
parent0b3bbd0e62616148933370b9a503b6d454a2e697 (diff)
downloadredmine-70965412a696dcbd93847df40e5d4bfcc50e30fd.tar.gz
redmine-70965412a696dcbd93847df40e5d4bfcc50e30fd.zip
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
-rw-r--r--.rubocop_todo.yml5
-rw-r--r--app/models/mail_handler.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 1515c9fb7..1c2f276bf 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -352,11 +352,6 @@ 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
Layout/SpaceAroundBlockParameters:
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 95a1e1742..60898ff6f 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -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