branch: elpa/magit
commit 6c48a8053fc33f0f44bf745125e6c713e72ea8b5
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-section-context-menu: Use correct conditional
---
lisp/magit-section.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 209bc68bc05..5f10b034625 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -613,9 +613,9 @@ with SECTION, otherwise return a list of section types."
`(menu-item
,(if (oref section hidden) "Expand section" "Collapse section")
magit-section-toggle))
- (when-let ((_(not (oref section hidden)))
- (children (oref section children))
- (_(seq-some #'magit-section-content-p children)))
+ (when-let* ((_(not (oref section hidden)))
+ (children (oref section children))
+ (_(seq-some #'magit-section-content-p children)))
(when (seq-some (##oref % hidden) children)
(keymap-set-after menu "<magit-section-show-children>"
`(menu-item "Expand children"