aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-03 22:36:58 -0500
committerSean Allred <code@seanallred.com>2015-01-03 22:36:58 -0500
commit9ff43f79e579a9da9a74429204ff52b26f53bf4e (patch)
treec2204cec78648b07a0a8c2ac7667623b090492fe
parentfe43a453a93f3cdd4d5504fe55e61629cfa098e5 (diff)
Use `push' instead of `setq'
-rw-r--r--sx-method.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/sx-method.el b/sx-method.el
index 063c404..8b97849 100644
--- a/sx-method.el
+++ b/sx-method.el
@@ -122,12 +122,9 @@ Return the entire response as a complex alist."
((and (or filter-auth method-auth) (not auth))
(error "This request requires authentication."))))
;; Concatenate all parameters now that filter is ensured.
- (setq keywords
- (cons (cons 'filter (sx-filter-get-var filter))
- keywords))
+ (push `(filter . ,(sx-filter-get-var filter)) keywords)
(when site
- ;; @TODO: Maybe use `push' instead?
- (setq keywords (cons (cons 'site site) keywords)))
+ (push `(site . ,site) keywords))
(funcall call
full-method
keywords