diff options
author | Holger Dürer <me@hdurer.net> | 2021-11-05 18:33:16 +0100 |
---|---|---|
committer | Holger Dürer <me@hdurer.net> | 2021-11-06 16:15:34 +0100 |
commit | 65f80fd810793638beb6f146b25919bca5c21cfc (patch) | |
tree | 6489b585e2f9bdd69b9febfb4bf737d8b96356ff /lisp/mastodon-auth.el | |
parent | f67114cc6c5c167db7327b6b965839236e0466aa (diff) |
Do a bit if `if` and `progn` sanitizing.
- A `progn` with a single form is redundant
- `when` doesn't need a `progn` body
- `if` has an implicit `progn` for the consequences
- I converted one cascade of `if`s into a `cond`.
Diffstat (limited to 'lisp/mastodon-auth.el')
-rw-r--r-- | lisp/mastodon-auth.el | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el index e5767f1..8d0d7c6 100644 --- a/lisp/mastodon-auth.el +++ b/lisp/mastodon-auth.el @@ -136,7 +136,6 @@ Otherwise, generate a token and pass it to `mastodon-auth--handle-token-reponse'." (if-let ((token (cdr (assoc mastodon-instance-url mastodon-auth--token-alist)))) token - (mastodon-auth--handle-token-response (mastodon-auth--get-token)))) (defun mastodon-auth--handle-token-response (response) |