From 41c38eb1fcd0295f7e2bf782b94952abe25a0d39 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 9 Sep 2015 18:45:22 +0300 Subject: [PATCH] Remove useless check --- cli/filelister.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/filelister.cpp b/cli/filelister.cpp index a5c7e9443..d2f9f8292 100644 --- a/cli/filelister.cpp +++ b/cli/filelister.cpp @@ -139,9 +139,7 @@ void FileLister::recursiveAddFiles(std::map &files, co } } while (FindNextFileA(hFind, &ffd) != FALSE); - if (INVALID_HANDLE_VALUE != hFind) { - FindClose(hFind); - } + FindClose(hFind); } bool FileLister::isDirectory(const std::string &path)