diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3a9db8a87..7bbd5a3b2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 045424ffb..3510285f2 100755 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -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