From: sin Date: Sat, 20 Dec 2014 19:35:27 +0000 (+0000) Subject: Simplify condition X-Git-Tag: v1.0~92^2~97 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3b5fe15166c2c2bd84654e97b3898bb9548472c1;p=nnn.git Simplify condition --- 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