[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon b05de5f907 30/50: some ifs become whens
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon b05de5f907 30/50: some ifs become whens |
Date: |
Sat, 2 Nov 2024 13:00:55 -0400 (EDT) |
branch: elpa/mastodon
commit b05de5f9075813d9e56317fd011dcd809da905bc
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>
some ifs become whens
---
lisp/mastodon-tl.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 595f0cfdf7..2db7f34112 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -3037,7 +3037,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))
@@ -3309,7 +3309,7 @@ JSON and http headers, without it just the JSON."
((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
- [nongnu] elpa/mastodon f3602493da 03/50: fix notifs custom group, (continued)
- [nongnu] elpa/mastodon f3602493da 03/50: fix notifs custom group, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 8446f239bb 02/50: working v1 notifications custom. #608, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon b529690f96 06/50: notifs: refactor some v1/v2 calling code, mastodon-notifiations--body-arg, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 14e3fa36cb 11/50: start on pagination for v1 notifs. #610, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 4505b4e818 05/50: index, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 1ba949586e 29/50: tl: improve ctrl flow in --spoiler + --toot. FIX #579, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 5cb2bf1c04 16/50: FIX #610 fix note/base toot in format-note/author byline., ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon b6676c180b 27/50: tl: improve ctrl flow in --spoiler + --toot, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 089eee6485 15/50: notifs: fix author action byline, top, for ungrouped. FIX #612, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon d06ac674ef 19/50: docs: remove old arg docstring, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon b05de5f907 30/50: some ifs become whens,
ELPA Syncer <=
- [nongnu] elpa/mastodon add6bfceaf 34/50: remove elsa from Cask, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 31557be472 50/50: Merge branch 'develop', ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon c4edecd145 23/50: cask build cleanups, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 2713081605 18/50: notifs: byline-accounts: remove toot arg, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 3ec8a8386b 35/50: Merge branch 'non-group-notifs' into develop, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 2bb6ad95f7 25/50: toot.el cask build cleanups, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 2c3f35c953 31/50: some ifs become whens, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon f1bdef0b73 40/50: revert transient polls to use mastodon-toot-poll, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon ebab9b20a1 43/50: refactor a read-more-or-less heading, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 6242db6028 49/50: bump, ELPA Syncer, 2024/11/02