]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/mailer.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:55:04 +0000 (14:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 14:55:04 +0000 (14:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19172 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index ed923ae68bf66c94500b8ced25c28c88f7403fcb..cb2c9f39e7f42a7efe461deed663d8969556dc19 100644 (file)
@@ -578,6 +578,7 @@ class Mailer < ActionMailer::Base
     if options[:version] && target_version_id.blank?
       raise ActiveRecord::RecordNotFound.new("Couldn't find Version named #{options[:version]}")
     end
+
     user_ids = options[:users]
 
     scope = Issue.open.where("#{Issue.table_name}.assigned_to_id IS NOT NULL" +
@@ -704,6 +705,7 @@ class Mailer < ActionMailer::Base
 
   def self.deliver_mail(mail)
     return false if mail.to.blank? && mail.cc.blank? && mail.bcc.blank?
+
     begin
       # Log errors when raise_delivery_errors is set to false, Rails does not
       mail.raise_delivery_errors = true