Remove unneeded error variable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-03-03 18:03:55 +08:00
parent 1a2afd4576
commit 0daec2071e

View File

@ -845,11 +845,10 @@ void FolderStatusModel::slotLscolFinishedWithError(QNetworkReply *reply)
if (parentInfo) {
qCDebug(lcFolderStatus) << reply->errorString();
parentInfo->_lastErrorString = reply->errorString();
auto error = reply->error();
parentInfo->resetSubs(this, idx);
if (error == QNetworkReply::ContentNotFoundError) {
if (reply->error() == QNetworkReply::ContentNotFoundError) {
parentInfo->_fetched = true;
} else {
ASSERT(!parentInfo->hasLabel());