aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@disroot.org>2024-11-01 15:48:32 +0100
committermarty hiatt <martianhiatus@disroot.org>2024-11-01 15:48:56 +0100
commit2c3f35c953574a046ef7e241494d5ee892c06ffb (patch)
tree548b94e4e3064cbb4b03fb43c88b8dc45a544dde /lisp/mastodon-tl.el
parentb6676c180ba94002a3f03fa0b09931e886923f3d (diff)
some ifs become whens
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a5bd2e0..b5dfa2b 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -3038,7 +3038,7 @@ MAX-ID is the pagination parameter, a string."
(alist-get 'hashtags response))
((string= "accounts" type)
(alist-get 'accounts response))))))
- (headers (if headers (cdr response) nil))
+ (headers (when headers (cdr response)))
(link-header
(mastodon-tl--get-link-header-from-response headers)))
(goto-char (point-max))
@@ -3312,7 +3312,7 @@ NO-BYLINE means just insert toot body, used for announcements."
((eq (caar json) 'error)
(user-error "Looks like the server bugged out: \"%s\"" (cdar json)))
(t
- (let* ((headers (if headers (cdr response) nil))
+ (let* ((headers (when headers (cdr response)))
(link-header
(mastodon-tl--get-link-header-from-response headers)))
(with-mastodon-buffer buffer #'mastodon-mode nil