]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/SpaceAfterSemicolon in app/models/mail_handler.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 14:51:48 +0000 (14:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 14:51:48 +0000 (14:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18657 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/mail_handler.rb

index 1515c9fb796aaf32fbaf30c444ea342dcdeb71f9..1c2f276bf017f3a072f90843c56aa21e1729e972 100644 (file)
@@ -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
index 95a1e17428413a13a9ef771a67f26ab769bfb531..60898ff6f5d6b1c73bfc0ecf74ac66002af324ac 100644 (file)
@@ -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