branch: elpa/mastodon
commit 0461c080c37a79c9d25000578255c1f009635371
Author: marty hiatt <martianhia...@disroot.org>
Commit: marty hiatt <martianhia...@disroot.org>

    http patch: if not rather than unless for url let-bind!
---
 lisp/mastodon-http.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index bfb08dec4c..ece575dc2b 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -315,8 +315,9 @@ JSON means send params as JSON data."
               (encode-coding-string
                (json-encode params) 'utf-8)))
            ;; (mastodon-http--build-params-string params))))
-           (url (unless json
-                  (mastodon-http--concat-params-to-url url params)))
+           (url (if (not json)
+                    (mastodon-http--concat-params-to-url url params)
+                  url))
            (headers (when json
                       '(("Content-Type" . "application/json")
                         ("Accept" . "application/json"))))

Reply via email to