Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2023-12-12 10:40:45 +01:00
parent 33c282b7dd
commit 5b654debbe
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ class ExercisesController < ApplicationController
def user_from_api_key
authorization_header = request.headers['Authorization']
api_key = authorization_header&.split(' ')&.second
api_key = authorization_header&.split&.second
user_by_codeharbor_token(api_key)
end