We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5e55b commit 96c2beeCopy full SHA for 96c2bee
src/libsync/syncengine.cpp
@@ -651,8 +651,8 @@ void SyncEngine::startSync()
651
_discoveryPhase->_leadingAndTrailingSpacesFilesAllowed = _leadingAndTrailingSpacesFilesAllowed;
652
_discoveryPhase->_account = _account;
653
_discoveryPhase->_excludes = _excludedFiles.data();
654
- const QString excludeFilePath = _localPath + QStringLiteral(".sync-exclude.lst");
655
- if (FileSystem::fileExists(excludeFilePath)) {
+ if (const QString excludeFilePath = _localPath + QStringLiteral(".sync-exclude.lst");
+ FileSystem::fileExists(excludeFilePath)) {
656
_discoveryPhase->_excludes->addExcludeFilePath(excludeFilePath);
657
_discoveryPhase->_excludes->reloadExcludeFiles();
658
}
0 commit comments