From aefee6ddae1f50811921792ef8d0de8af5e4df89 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 6 Jun 2018 13:45:48 +0200 Subject: * lisp/emms-player-mpv.el: Replace (if ... nil) with (and ...) --- lisp/emms-player-mpv.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lisp') diff --git a/lisp/emms-player-mpv.el b/lisp/emms-player-mpv.el index 55023af..b22aa25 100644 --- a/lisp/emms-player-mpv.el +++ b/lisp/emms-player-mpv.el @@ -311,8 +311,7 @@ Error is signaled if mpv binary fails to run." which is distinct from 'start-command sent' and 'process is running' states. Used to signal emms via `emms-player-started' and `emms-player-stopped' calls." (let ((proc (or proc emms-player-mpv-proc))) - (if proc (process-get proc 'mpv-playing) - nil))) + (and proc (process-get proc 'mpv-playing)))) (defun emms-player-mpv-proc-playing (state &optional proc) "Set process mpv-playing state flag for `emms-player-mpv-proc-playing-p'." -- cgit v1.2.3