Simplify a bit a condition in pipewire--current-object

This commit is contained in:
Milan Zamazal 2022-07-12 21:32:56 +02:00
parent cc8fa0336e
commit 4ce4bbda10

View File

@ -176,7 +176,7 @@ The indicator is displayed only on graphical terminals."
(let* ((id (pipewire--current-object-id)) (let* ((id (pipewire--current-object-id))
(object (when id (pw-lib-get-object id)))) (object (when id (pw-lib-get-object id))))
(when (and object (when (and object
(not (null allowed-types)) allowed-types
(not (member (pw-lib-object-type object) allowed-types))) (not (member (pw-lib-object-type object) allowed-types)))
(setq object nil)) (setq object nil))
(when (and use-default-p (not object)) (when (and use-default-p (not object))