From 47d35e13962b64344806ce94413bc8a8f5be3707 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 14 Mar 2019 20:15:59 +0530 Subject: [PATCH] Remove redundant check --- src/nnn.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);