]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove redundant check
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 14 Mar 2019 14:45:59 +0000 (20:15 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 14 Mar 2019 14:45:59 +0000 (20:15 +0530)
src/nnn.c

index 104a4e7094ae9a8ae673ae8b224e93471bf1f6fe..a817ccefe20348016367bb96c4b78c0006101f82 100644 (file)
--- 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);