Utils: Remove odd check from FilePath::resolvePath

Change-Id: I824b2abd722da1e6a240394bee6578ffb028fb17
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-14 10:12:46 +02:00
parent 75aa1f2a6c
commit 7bba3f7d6f

View File

@@ -388,8 +388,6 @@ bool FilePath::isRelativePath() const
FilePath FilePath::resolvePath(const QString &fileName) const FilePath FilePath::resolvePath(const QString &fileName) const
{ {
if (fileName.isEmpty())
return {}; // FIXME: Isn't this odd?
if (FileUtils::isAbsolutePath(fileName)) if (FileUtils::isAbsolutePath(fileName))
return FilePath::fromString(QDir::cleanPath(fileName)); return FilePath::fromString(QDir::cleanPath(fileName));
return FilePath::fromString(QDir::cleanPath(toString() + QLatin1Char('/') + fileName)); return FilePath::fromString(QDir::cleanPath(toString() + QLatin1Char('/') + fileName));