branch: elpa/magit
commit d2fa1af1497417fbf02506186ba00cff8cb4e862
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-branch-delete: Reduce scope of binding
---
lisp/magit-branch.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/magit-branch.el b/lisp/magit-branch.el
index ab03c4887f5..ad1ebea8eab 100644
--- a/lisp/magit-branch.el
+++ b/lisp/magit-branch.el
@@ -611,9 +611,8 @@ prompt is confusing."
(cl-set-difference branches unmerged :test #'equal))
(user-error "Abort"))))
(list branches force)))
- (let* ((refs (mapcar #'magit-ref-fullname branches))
- (ambiguous (--remove it refs)))
- (when ambiguous
+ (let ((refs (mapcar #'magit-ref-fullname branches)))
+ (when-let ((ambiguous (--remove it refs)))
(user-error
"%s ambiguous. Please cleanup using git directly."
(let ((len (length ambiguous)))