From 7df974c433a7d675a2dcb2dab1063e61686476ec Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Tue, 25 Apr 2017 13:30:08 -0300 Subject: Add blank line before the raise method on Github::Collection --- lib/github/collection.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1