RUBYCRITIC
# frozen_string_literal: true
module Apps::Chatwoot::ApiClient::UserProfile - Apps::Chatwoot::ApiClient::UserProfile has no descriptive comment
def user_profile
response = get_request('/api/v1/profile')
return { error: 'Failed to fetch user profile', request: response[:request] } if response[:request].status != 200 - Apps::Chatwoot::ApiClient::UserProfile#user_profile calls 'response[:request]' 2 times
- Apps::Chatwoot::ApiClient::UserProfile#user_profile refers to 'response' more than self (maybe move it to another class?)
response
end
end