mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Simplify condition
This commit is contained in:
parent
3fa6a6272c
commit
3b5fe15166
4
noice.c
4
noice.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue