branch: externals/shell-command+
commit 0e0c7258f8ff2ca218211626ba8771fa3dd81ca9
Author: Philip K <phil...@posteo.net>
Commit: Philip K <phil...@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 
processed."
                       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)
                                 shell-command-default-error-buffer))))
       (when has->
         (with-current-buffer "*Shell Command Output*"

Reply via email to