aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authorHolger Dürer <me@hdurer.net>2021-11-05 18:33:16 +0100
committerHolger Dürer <me@hdurer.net>2021-11-06 16:15:34 +0100
commit65f80fd810793638beb6f146b25919bca5c21cfc (patch)
tree6489b585e2f9bdd69b9febfb4bf737d8b96356ff /lisp/mastodon-profile.el
parentf67114cc6c5c167db7327b6b965839236e0466aa (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-profile.el')
-rw-r--r--lisp/mastodon-profile.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index c4bec38..81ab837 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -349,12 +349,11 @@ Returns a list of lists."
(mastodon-tl--render-text note account)
;; account here to enable tab-stops in profile note
(if fields
- (progn
- (concat "\n"
- (mastodon-tl--set-face
- (mastodon-profile--fields-insert fields)
- 'success)
- "\n"))
+ (concat "\n"
+ (mastodon-tl--set-face
+ (mastodon-profile--fields-insert fields)
+ 'success)
+ "\n")
"")
;; insert counts
(mastodon-tl--set-face