emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/annotate f2dd24802e 13/17: - removed nested 'if' inside a


From: ELPA Syncer
Subject: [nongnu] elpa/annotate f2dd24802e 13/17: - removed nested 'if' inside a call to 'list'.
Date: Fri, 25 Feb 2022 14:57:56 -0500 (EST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]