From: Arun Prakash Jana Date: Thu, 14 Mar 2019 14:45:59 +0000 (+0530) Subject: Remove redundant check X-Git-Tag: v2.4~17 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=47d35e13962b64344806ce94413bc8a8f5be3707;p=nnn.git Remove redundant check --- diff --git a/src/nnn.c b/src/nnn.c index 104a4e70..a817ccef 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3475,8 +3475,7 @@ nochange: appendfpath(newpath, r); writecp(newpath, r - 1); /* Truncate NULL from end */ - if (copier) - spawn(copier, NULL, NULL, NULL, F_NOTRACE); + spawn(copier, NULL, NULL, NULL, F_NOTRACE); } dents[cur].flags |= FILE_COPIED; @@ -3537,8 +3536,7 @@ nochange: if (copybufpos) { /* File path(s) written to the buffer */ writecp(pcopybuf, copybufpos - 1); /* Truncate NULL from end */ - if (copier) - spawn(copier, NULL, NULL, NULL, F_NOTRACE); + spawn(copier, NULL, NULL, NULL, F_NOTRACE); if (ncp) { /* Some files cherry picked */ mvprintw(xlines - 1, 0, "%d selected\n", ncp);