simplify code

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-01-24 21:27:50 +01:00
parent 9a9e73cdce
commit 8dee66f84e
No known key found for this signature in database
GPG key ID: 7D0F74F05C22F553

View file

@ -727,13 +727,9 @@ QString Utility::makeCaseClashConflictFileName(const QString &filename, const QD
bool Utility::isCaseClashConflictFile(const QString &name)
{
auto bname = name.midRef(name.lastIndexOf(QLatin1Char('/')) + 1);
const auto bname = name.midRef(name.lastIndexOf(QLatin1Char('/')) + 1);
if (bname.contains(QStringLiteral("(case clash from"))) {
return true;
}
return false;
return bname.contains(QStringLiteral("(case clash from"));
}
} // namespace OCC