branch: elpa/git-commit
commit 048d001aa33f0e66c801f73cd846dff58dd07446
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-rev-format: Cosmetics
---
 lisp/magit-git.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 502b5f0e73..6a14819f50 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2178,8 +2178,8 @@ Return a list of two integers: (A>B B>A)."
                                (concat "--format=" format) args
                                (if rev (magit--rev-dereference rev) "HEAD")
                                "--")))
-    (unless (string-equal str "")
-      str)))
+    (and (not (string-equal str ""))
+         str)))
 
 (defun magit-rev-insert-format (format &optional rev args)
   ;; Prefer `git log --no-walk' to `git show --no-patch' because it

Reply via email to