0
0
Fork 0

Fix Style/RedundantParentheses cop (#28176)

This commit is contained in:
Matt Jankowski 2023-12-01 11:00:44 -05:00 committed by GitHub
parent 5631f139c1
commit 3bc437b99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -64,7 +64,7 @@ class Api::BaseController < ApplicationController
end
def doorkeeper_unauthorized_render_options(error: nil)
{ json: { error: (error.try(:description) || 'Not authorized') } }
{ json: { error: error.try(:description) || 'Not authorized' } }
end
def doorkeeper_forbidden_render_options(*)