mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-24 09:09:43 -05:00
Source: Remove redundant FileIsDirectory checks
This commit is contained in:
@@ -414,8 +414,7 @@ protected:
|
||||
path += "/";
|
||||
}
|
||||
path += fname;
|
||||
if (cmSystemTools::FileExists(path, true) &&
|
||||
!cmSystemTools::FileIsDirectory(path)) {
|
||||
if (cmSystemTools::FileExists(path, true)) {
|
||||
std::string fp = cmSystemTools::CollapseFullPath(path);
|
||||
this->DirectoryToFileToPathMap[extraPath][fname] = fp;
|
||||
return fp;
|
||||
@@ -428,8 +427,7 @@ protected:
|
||||
path = path + "/";
|
||||
}
|
||||
path = path + fname;
|
||||
if (cmSystemTools::FileExists(path, true) &&
|
||||
!cmSystemTools::FileIsDirectory(path)) {
|
||||
if (cmSystemTools::FileExists(path, true)) {
|
||||
std::string fp = cmSystemTools::CollapseFullPath(path);
|
||||
this->DirectoryToFileToPathMap[extraPath][fname] = fp;
|
||||
return fp;
|
||||
|
||||
Reference in New Issue
Block a user