We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b53564 + 51b0f89 commit 0b66437Copy full SHA for 0b66437
src/manetu/gitlab/api.clj
@@ -51,6 +51,8 @@
51
(m/map-vals #(Integer/parseInt %) $))]
52
(when (and (>= status 200) (< status 400))
53
(let [acc (concat acc body)]
54
- (if (>= x-page x-total-pages)
55
- acc
+ (if (or (nil? x-total-pages) (nil? x-page) (>= x-page x-total-pages))
+ (do
56
+ (log/debug "invoke-allpages complete x-total-pages:" x-total-pages "x-page:" x-page)
57
+ acc)
58
(recur acc (inc x-page))))))))
0 commit comments