diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/github/collection.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/github/collection.rb b/lib/github/collection.rb index 12d6703476b..014b2038c4b 100644 --- a/lib/github/collection.rb +++ b/lib/github/collection.rb @@ -13,6 +13,7 @@ module Github loop do response = client.get(url, query) response.body.each { |item| yielder << item } + raise StopIteration unless response.rels.key?(:next) url = response.rels[:next] end |