mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 19:59:47 +08:00
Convert: Remove early return check
This function delegates to another function which does the same check.
This commit is contained in:
@@ -86,11 +86,6 @@ std::string cmOutputConverter::ConvertToRelativePath(
|
|||||||
// The local path should never have a trailing slash.
|
// The local path should never have a trailing slash.
|
||||||
assert(local_path.empty() || local_path[local_path.size() - 1] != '/');
|
assert(local_path.empty() || local_path[local_path.size() - 1] != '/');
|
||||||
|
|
||||||
// If the path is already relative then just return the path.
|
|
||||||
if (!cmSystemTools::FileIsFullPath(remote_path.c_str())) {
|
|
||||||
return remote_path;
|
|
||||||
}
|
|
||||||
|
|
||||||
const std::string relativePathTopBinary =
|
const std::string relativePathTopBinary =
|
||||||
this->StateSnapshot.GetDirectory().GetRelativePathTopBinary();
|
this->StateSnapshot.GetDirectory().GetRelativePathTopBinary();
|
||||||
const std::string relativePathTopSource =
|
const std::string relativePathTopSource =
|
||||||
|
|||||||
Reference in New Issue
Block a user