Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-oz committed Apr 12, 2018
1 parent f653625 commit 0dde379
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/vimeo_me2/http/http_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ def set_auth_header token
end

def http_request
body = json_header? ? @body.to_json : @body
return {headers:@headers, body:formatted_body, query:@query}
end

return {headers:@headers, body:body, query:@query}
def formatted_body
json_header? ? @body.to_json : @body
end

def json_header?
Expand Down

0 comments on commit 0dde379

Please sign in to comment.