diff options
author | sin <sin@2f30.org> | 2014-12-20 19:35:27 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-12-20 21:51:27 +0000 |
commit | 3b5fe15166c2c2bd84654e97b3898bb9548472c1 (patch) | |
tree | 0a7b3a4d0683200da2c30a717b226c30ef8f5c93 /noice.c | |
parent | 3fa6a6272cd304671b195111b283417d2d24f851 (diff) | |
download | noice-3b5fe15166c2c2bd84654e97b3898bb9548472c1.tar.gz |
Simplify condition
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |