Skip to content

Commit

Permalink
Fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ikapelyukhin committed Jun 20, 2017
1 parent b36c1e5 commit f026f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/get_products_paginated.rb
Expand Up @@ -35,7 +35,7 @@ def get(url)
links = process_rels(resp)
@entities += JSON.parse(resp)
break unless links[:next]
@page = + 1
@page += 1
resp = get(links[:next])
end

Expand Down

0 comments on commit f026f05

Please sign in to comment.