Skip to content

Commit

Permalink
fixup(f67500b): Combine some conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Sep 28, 2024
1 parent 4587f8d commit 683e510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ commands are aliases for."
(and (listp val) (not (eq (car val) 'lambda))))
(setq args (plist-put args key (macroexp-quote val))))
((setq args (plist-put args key val)))))))
(when-let* ((not (plist-get args :key))
(when-let* (((not (plist-get args :key)))
(shortarg (plist-get args :shortarg)))
(setq args (plist-put args :key shortarg)))
(list 'list
Expand Down Expand Up @@ -2197,7 +2197,7 @@ value. Otherwise return CHILDREN as is."
(cl-defmethod transient--init-suffix-key ((obj transient-argument))
(if (transient-switches--eieio-childp obj)
(cl-call-next-method obj)
(when-let* ((not (slot-boundp obj 'shortarg))
(when-let* (((not (slot-boundp obj 'shortarg)))
(shortarg (transient--derive-shortarg (oref obj argument))))
(oset obj shortarg shortarg))
(unless (slot-boundp obj 'key)
Expand Down

0 comments on commit 683e510

Please sign in to comment.