Revision d7c67746
Added by Michael Moll almost 6 years ago
db/seeds.d/160-mail_notifications.rb | ||
---|---|---|
mail.save! if mail.changed?
|
||
else
|
||
created_notification = MailNotification.create(notification)
|
||
raise ::Foreman::Exception.new(N_("Unable to create mail notification: %s"),
|
||
format_errors(created_notification)) if created_notification.nil? || created_notification.errors.any?
|
||
if created_notification.nil? || created_notification.errors.any?
|
||
raise ::Foreman::Exception.new(N_("Unable to create mail notification: %s"),
|
||
format_errors(created_notification))
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)