mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
simplify code
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
9a9e73cdce
commit
8dee66f84e
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue