api remove useless symbolize

This commit is contained in:
simon lehericey 2021-09-21 12:14:07 +02:00
parent 07962cc2c7
commit ceb09c5967

View file

@ -10,7 +10,7 @@ class APIParticulier::API
end
def scopes
get(INTROSPECT_RESOURCE_NAME)[:scopes]
get(INTROSPECT_RESOURCE_NAME)['scopes']
end
private
@ -24,7 +24,7 @@ class APIParticulier::API
timeout: TIMEOUT)
if response.success?
JSON.parse(response.body, symbolize_names: true)
JSON.parse(response.body)
elsif response.code == 401
raise Unauthorized.new(response)
else