Skip to content

Commit 87cce1c

Browse files
committed
Merge remote-tracking branch 'danmar/master'
2 parents 4f39635 + c19c7ac commit 87cce1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cli/filelister.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ void FileLister::recursiveAddFiles(std::map<std::string, std::size_t> &files, co
139139
}
140140
} while (FindNextFileA(hFind, &ffd) != FALSE);
141141

142-
if (INVALID_HANDLE_VALUE != hFind) {
143-
FindClose(hFind);
144-
}
142+
FindClose(hFind);
145143
}
146144

147145
bool FileLister::isDirectory(const std::string &path)

0 commit comments

Comments
 (0)