提交 634f8f90 编写于 作者: M Matt Pharr

Cleanup logic in ResolveFilename()

上级 041575ab
......@@ -67,9 +67,7 @@ std::string RemoveExtension(std::string filename) {
}
std::string ResolveFilename(std::string filename) {
if (searchDirectory.empty() || filename.empty())
return filename;
else if (IsAbsolutePath(filename))
if (searchDirectory.empty() || filename.empty() || IsAbsolutePath(filename))
return filename;
else
return (searchDirectory / filesystem::path(filename)).make_absolute().str();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册