From 3b5fe15166c2c2bd84654e97b3898bb9548472c1 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 20 Dec 2014 19:35:27 +0000 Subject: Simplify condition --- noice.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'noice.c') 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 -- cgit v1.2.3