Skip to content

Commit

Permalink
Fixes Rubocop violation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehannes committed Feb 1, 2023
1 parent fa7e554 commit 7aca7b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/fortnox/api/repositories/authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ def validate_response(response)
when 401
raise Fortnox::API::RemoteServerError, "Unauthorized request. Error: \"#{response.body}\""
else
message = 'Unable to renew access token. ' \
"Response code: #{response.code}. " \
"Response message: #{response.message}. " \
"Response body: #{response.body}"
raise Exception, message
raise Exception, "Unable to renew access token. Response code: #{response.code}. " \
"Response message: #{response.message}. Response body: #{response.body}"
end
end
end
Expand Down

0 comments on commit 7aca7b6

Please sign in to comment.