Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ylecuyer committed May 1, 2024
1 parent 39210a5 commit 5652df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/koala/api/graph_batch_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def execute(http_options = {})
original_api.graph_call("/", args, "post", http_options) do |response|
raise bad_response("Facebook returned an empty body") if response.nil?

#when http_component is set we receive Koala::Http_service response object
# from graph_call.so thiis needs to be parsed
# as generate_results method handles only JSON rsponse
# when http_component is set we receive Koala::Http_service response object
# from graph_call so this needs to be parsed
# as generate_results method handles only JSON response
if http_options[:http_component]
response = JSON.load(response.body)
raise bad_response("Facebook returned an invalid body") unless response.is_a?(Array)
Expand Down

0 comments on commit 5652df0

Please sign in to comment.