noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 3b5fe15166c2c2bd84654e97b3898bb9548472c1
parent 3fa6a6272cd304671b195111b283417d2d24f851
Author: sin <sin@2f30.org>
Date:   Sat, 20 Dec 2014 19:35:27 +0000

Simplify condition

Diffstat:
Mnoice.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/noice.c b/noice.c @@ -365,12 +365,10 @@ canopendir(char *path) DIR *dirp; dirp = opendir(path); - if (dirp == NULL) { + if (dirp == NULL) return 0; - } else { - closedir(dirp); - return 1; - } + closedir(dirp); + return 1; } void