]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix lint error
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Nov 2019 20:04:07 +0000 (01:34 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Nov 2019 20:04:07 +0000 (01:34 +0530)
src/nnn.c

index 341a78e26682c952ab623728fe04b89a97e96df4..1023e166a4d11e343e70112409b5e04eee1703a3 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1363,8 +1363,9 @@ static bool xmkentryp(char* path, bool dir)
                        DPRINTF_S("open fail");
                        DPRINTF_S(strerror(errno));
                        return FALSE;
-               } else
-                       close(fd);
+               }
+
+               close(fd);
        }
 
        return TRUE;