branch: elpa/magit
commit 6de483628e808d66d46f2e691e5750ab8087d17c
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-jump-to-diffstat-or-diff: Cosmetics
---
 lisp/magit-diff.el | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 13c10eb7849..fbe00d0b472 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -2022,14 +2022,15 @@ When point is on a file inside the diffstat section, 
then jump
 to the respective diff section, otherwise jump to the diffstat
 section or a child thereof."
   (interactive)
-  (if-let ((section (magit-get-section
-                     (append (magit-section-case
-                               ([file diffstat] `((file . ,(oref it value))))
-                               (file `((file . ,(oref it value)) (diffstat)))
-                               (t '((diffstat))))
-                             (magit-section-ident magit-root-section)))))
-      (magit-section-goto section)
-    (user-error "No diffstat in this buffer")))
+  (cond-let
+    ([section (magit-get-section
+               (append (magit-section-case
+                         ([file diffstat] `((file . ,(oref it value))))
+                         (file `((file . ,(oref it value)) (diffstat)))
+                         (t '((diffstat))))
+                       (magit-section-ident magit-root-section)))]
+     (magit-section-goto section))
+    ((user-error "No diffstat in this buffer"))))
 
 ;;; Diff Mode
 

Reply via email to