Add an apply Style/RaiseArgs rubocop rule

We were already applying it most of the time.
This commit is contained in:
Javi Martín
2021-08-09 17:32:45 +02:00
parent 8979472820
commit 57d8a59d10
4 changed files with 7 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
private
def sign_in_with(feature, provider)
raise ActionController::RoutingError.new("Not Found") unless Setting["feature.#{feature}"]
raise ActionController::RoutingError, "Not Found" unless Setting["feature.#{feature}"]
auth = request.env["omniauth.auth"]