branch: externals/transient
commit 228853400fbc17fb97fb61518925995ac03d5e73
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    transient-get-suffix: Cosmetics
---
 lisp/transient.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 4b672d1057..1b332ede44 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1591,9 +1591,8 @@ LOC is a command, a key vector, a key description (a 
string
   as returned by `key-description'), or a coordination list
   (whose last element may also be a command or key).
 See info node `(transient)Modifying Existing Transients'."
-  (if-let ((mem (transient--layout-member loc prefix)))
-      (car mem)
-    (error "%s not found in %s" loc prefix)))
+  (or (car (transient--layout-member loc prefix))
+      (error "%s not found in %s" loc prefix)))
 
 (defun transient--layout-member (loc prefix &optional remove)
   (let ((layout (transient--get-layout prefix)))

Reply via email to