1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

CodeCleanup: RuboCop: Fix Style/RaiseArgs in app/models/mail_handler.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18405 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-08-27 16:08:44 +00:00
parent e9d74c01d0
commit fe0a89d7d1
2 changed files with 1 additions and 2 deletions

View File

@ -1616,7 +1616,6 @@ Style/RaiseArgs:
Exclude:
- 'app/models/auth_source_ldap.rb'
- 'app/models/issue_query.rb'
- 'app/models/mail_handler.rb'
- 'app/models/mailer.rb'
- 'app/models/query.rb'
- 'app/models/tracker.rb'

View File

@ -400,7 +400,7 @@ class MailHandler < ActionMailer::Base
target = Project.find_by_identifier(default_project)
end
end
raise MissingInformation.new('Unable to determine target project') if target.nil?
raise MissingInformation, 'Unable to determine target project' if target.nil?
target
end