Skip to content

Commit

Permalink
Remove unnecessary peek check.
Browse files Browse the repository at this point in the history
  • Loading branch information
BraedonWooding authored Sep 24, 2023
1 parent ff6bfae commit 679efe2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -1478,10 +1478,8 @@ int cpathPeekNextFile(cpath_dir *dir, cpath_file *file) {

_CPATH_FUNC_
int cpathGetNextFile(cpath_dir *dir, cpath_file *file) {
if (file != NULL) {
if (!cpathPeekNextFile(dir, file)) {
return 0;
}
if (!cpathPeekNextFile(dir, file)) {
return 0;
}

errno = 0;
Expand Down

0 comments on commit 679efe2

Please sign in to comment.