From: Hannah von Reth Date: Wed, 9 Dec 2020 10:19:30 +0000 (+0100) Subject: Don't warn if everything is fine X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c03a5da6709a57c0456ca9d83158fe839ab7a3c1;p=nextcloud-desktop.git Don't warn if everything is fine --- diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 63640cab6..c8b522dcf 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -391,9 +391,7 @@ static void propertyMapToRemoteInfo(const QMap &map, RemoteInf result.isDirectory = value.contains(QLatin1String("collection")); } else if (property == QLatin1String("getlastmodified")) { const auto date = QDateTime::fromString(value, Qt::RFC2822Date); - if (date.isValid()) { - qCCritical(lcDiscovery) << "Failed to parse getlastmodified:" << value; - } + Q_ASSERT(date.isValid()); result.modtime = date.toTime_t(); } else if (property == QLatin1String("getcontentlength")) { // See #4573, sometimes negative size values are returned