aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-12-20 19:35:27 +0000
committersin <sin@2f30.org>2014-12-20 21:51:27 +0000
commit3b5fe15166c2c2bd84654e97b3898bb9548472c1 (patch)
tree0a7b3a4d0683200da2c30a717b226c30ef8f5c93 /noice.c
parent3fa6a6272cd304671b195111b283417d2d24f851 (diff)
downloadnoice-3b5fe15166c2c2bd84654e97b3898bb9548472c1.tar.gz
Simplify condition
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/noice.c b/noice.c
index b3aff68..2aa3204 100644
--- 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
Un proyecto texto-plano.xyz