From fe0a89d7d172a9214c52aa136f616d55661887f6 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 27 Aug 2019 16:08:44 +0000 Subject: [PATCH] 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 --- .rubocop_todo.yml | 1 - app/models/mail_handler.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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