Skip to content

Commit

Permalink
Fix Style/RedundantArgument cop
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Dec 11, 2023
1 parent d8bc1e3 commit 84c9de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/jwt_token_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module JwtTokenConcern
private

def jwt_token
type, token = request.headers['Authorization']&.split(' ')
type, token = request.headers['Authorization']&.split

token if type == 'Bearer'
end
Expand Down

0 comments on commit 84c9de8

Please sign in to comment.