diff --git a/noice.c b/noice.c index b3aff682..2aa32049 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