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

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

[nongnu] elpa/annotate 0e5ccfdb4e 326/372: - replaced 'if' with 'when' w


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 0e5ccfdb4e 326/372: - replaced 'if' with 'when' when no 'else' branch exists.
Date: Fri, 4 Feb 2022 16:59:15 -0500 (EST)

branch: elpa/annotate
commit 0e5ccfdb4e033f29812593c7c47baf7b2d4d603f
Author: cage <cage@localhost>
Commit: cage <cage@invalid>

    - replaced 'if' with 'when' when no 'else' branch exists.
---
 annotate.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/annotate.el b/annotate.el
index d134b67442..198fe7a392 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1405,8 +1405,8 @@ essentially what you get from:
     (annotate-dump-annotation-data (cl-remove-if (lambda (entry)
                                                    (null 
(annotate-annotations-from-dump entry)))
                                                  all-annotations))
-    (if annotate-use-messages
-        (message "Annotations saved."))))
+    (when annotate-use-messages
+      (message "Annotations saved."))))
 
 (defun annotate-load-annotation-old-format ()
   "Load all annotations from disk in old format."
@@ -1429,8 +1429,8 @@ essentially what you get from:
             (annotate-create-annotation start end annotation-string nil)))))
     (set-buffer-modified-p modified-p)
     (font-lock-flush)
-    (if annotate-use-messages
-        (message "Annotations loaded."))))
+    (when annotate-use-messages
+      (message "Annotations loaded."))))
 
 (defun annotate-load-annotations ()
   "Load all annotations from disk and redraw the buffer to render the 
annotations.



reply via email to

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