diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-25 13:30:08 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-25 13:30:08 -0300 |
commit | 7df974c433a7d675a2dcb2dab1063e61686476ec (patch) | |
tree | c7406485d30a02feeb7ccfdeb17acc92c8b91e09 /lib | |
parent | aeb1684c524628f7279eadce5e461880e9865349 (diff) | |
download | gitlab-ce-7df974c433a7d675a2dcb2dab1063e61686476ec.tar.gz |
Add blank line before the raise method on Github::Collection
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 |