Merge pull request #5118 from nextcloud/bugfix/remove-unused-var-user

Remove unused remotePath in User::processCompletedSyncItem
This commit is contained in:
Claudio Cambra 2022-11-09 17:08:12 +01:00 committed by GitHub
commit 136bbd14b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,9 +617,6 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
}
if(activity._fileAction != "file_deleted" && !item->isEmpty()) {
auto remotePath = folder->remotePath();
remotePath.append(activity._fileAction == "file_renamed" ? item->_renameTarget : activity._file);
const auto localFiles = FolderMan::instance()->findFileInLocalFolders(item->_file, account());
if (!localFiles.isEmpty()) {
const auto firstFilePath = localFiles.constFirst();