[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/shell-command+ 0e0c725 35/36: simplify if-expressions w

From: Stefan Monnier
Subject: [elpa] externals/shell-command+ 0e0c725 35/36: simplify if-expressions where applicable
Date: Fri, 25 Sep 2020 11:01:27 -0400 (EDT)

branch: externals/shell-command+
commit 0e0c7258f8ff2ca218211626ba8771fa3dd81ca9
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    simplify if-expressions where applicable
 bang.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bang.el b/bang.el
index 5fc4678..50ec7b1 100644
--- a/bang.el
+++ b/bang.el
@@ -116,8 +116,8 @@ between BEG and END.  Otherwise the whole buffer is 
                       beg end rest t t
                       shell-command-default-error-buffer t))
               ((and bang-use-eshell can-eshell)
-               (eshell-command rest (if current-prefix-arg t nil)))
-              (t (shell-command rest (if current-prefix-arg t nil)
+               (eshell-command rest (and current-prefix-arg t)))
+              (t (shell-command rest (and current-prefix-arg t)
       (when has->
         (with-current-buffer "*Shell Command Output*"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]