Simplify condition

This commit is contained in:
sin 2014-12-20 19:35:27 +00:00
parent 3fa6a6272c
commit 3b5fe15166

View file

@ -365,13 +365,11 @@ canopendir(char *path)
DIR *dirp; DIR *dirp;
dirp = opendir(path); dirp = opendir(path);
if (dirp == NULL) { if (dirp == NULL)
return 0; return 0;
} else {
closedir(dirp); closedir(dirp);
return 1; return 1;
} }
}
void void
printent(struct entry *ent, int active) printent(struct entry *ent, int active)