aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-02 19:28:25 -0500
committerSean Allred <code@seanallred.com>2015-01-02 19:28:25 -0500
commit07b9d0e64d488670cdb6672103e1d044c065d5ba (patch)
treefef0f5b75781153e165d1bd405220157f3568fbf
parentdd9c2017cb3f0b145b39150562a0c4e59c244df1 (diff)
Remove process-function from request-all-items
It doesn't really make sense.
-rw-r--r--sx-request.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-request.el b/sx-request.el
index 00b90be..da0a1fb 100644
--- a/sx-request.el
+++ b/sx-request.el
@@ -100,7 +100,7 @@ It is good to use a reasonable delay to avoid rate-limiting.")
;;; Making Requests
(defun sx-request-all-items (method &optional args request-method
- process-function stop-when)
+ stop-when)
"Call METHOD with ARGS until there are no more items.
STOP-WHEN is a function that takes the entire response and
returns non-nil if the process should stop.
@@ -115,7 +115,7 @@ access the response wrapper."
(let* ((return-value [])
(current-page 1)
(stop-when (or stop-when #'sx-request-all-stop-when-no-more))
- (process-function (or process-function #'identity))
+ (process-function #'identity)
(response
(sx-request-make method `((page . ,current-page) ,@args)
request-method process-function)))