lib/octokit/client/stats.rb in octokit-4.3.0 vs lib/octokit/client/stats.rb in octokit-4.4.0

- old
+ new

@@ -94,10 +94,10 @@ end loop do data = get("#{Repository.path repo}/stats/#{metric}", options) return data if last_response.status == 200 return nil unless retry_timeout - return data if Time.now >= timeout + return nil if Time.now >= timeout sleep retry_wait if retry_wait end end end end