branch: elpa/annotate
commit f2dd24802efb918c0a1f760c4009d84c077cee94
Author: cage <cage@invalid>
Commit: cage <cage@invalid>
- removed nested 'if' inside a call to 'list'.
---
annotate.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/annotate.el b/annotate.el
index 5b658cbfb4..5d0ceeea39 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1210,12 +1210,11 @@ a a**"
(setq prefix-first prefix-rest))))))
(when (not annotate-use-echo-area)
;; build facespec with the annotation text as display property
- (list 'face 'default 'display
- (if (string= annotation-text "")
- ;; annotation has been removed: remove display prop
- nil
- ;; annotation has been changed/added: change/add display prop
- annotation-text)))))) ;; )
+ (if (string= annotation-text "")
+ ;; annotation has been removed: remove display prop
+ (list 'face 'default 'display nil)
+ ;; annotation has been changed/added: change/add display prop
+ (list 'face 'default 'display annotation-text))))))
(defun annotate--remove-annotation-property (_begin end)
"Cleans up annotation properties associated within a region