Commit f68d9261 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Fix typos

parent 0fa31245b349
...@@ -110,7 +110,7 @@ def request(method, *args, &block) ...@@ -110,7 +110,7 @@ def request(method, *args, &block)
if block_given? if block_given?
yield data yield data
# api.last_response could change while we're yielding (e.g. fetching labels for each PR) # api.last_response could change while we're yielding (e.g. fetching labels for each PR)
# so we cache our own last request # so we cache our own last response
each_response_page(last_response, &block) each_response_page(last_response, &block)
else else
each_response_page(last_response) { |page| data.concat(page) } each_response_page(last_response) { |page| data.concat(page) }
......
...@@ -203,7 +203,7 @@ def discard_inserted_comments(comments, last_note) ...@@ -203,7 +203,7 @@ def discard_inserted_comments(comments, last_note)
# No matching resource in the collection, which means we got halted right on the end of the last page, so all good # No matching resource in the collection, which means we got halted right on the end of the last page, so all good
return unless cut_off_index return unless cut_off_index
# Otherwise, remove the resouces we've already inserted # Otherwise, remove the resources we've already inserted
comments.shift(cut_off_index + 1) comments.shift(cut_off_index + 1)
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment