aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-06-21 11:33:40 +0200
committermousebot <mousebot@riseup.net>2021-06-21 11:34:43 +0200
commit7afc5a08e35c86acc9f009404045a787ef61b77b (patch)
treefec887a623bc47dfddba7ba1edfbbdcc4c01389c /lisp/mastodon-http.el
parent5e022b655b654fe1967c848b45b1400fff502d37 (diff)
typo in async http-layer, unless in http process-json, typo in readm
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 144b446..e8fd4d3 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -126,9 +126,8 @@ Pass response buffer to CALLBACK function."
(buffer-substring-no-properties (point) (point-max))
'utf-8)))
(kill-buffer)
- (if (not (or (string= "" json-string) (equal nil json-string)))
- (json-read-from-string json-string)
- (message "Looks like we got no JSON from the server."))))
+ (unless (or (string= "" json-string) (equal nil json-string)))
+ (json-read-from-string json-string)))
(defun mastodon-http--delete (url)
"Make DELETE request to URL."