Don't warn if everything is fine
authorHannah von Reth <hannah.vonreth@owncloud.com>
Wed, 9 Dec 2020 10:19:30 +0000 (11:19 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 10:01:53 +0000 (11:01 +0100)
src/libsync/discoveryphase.cpp

index 63640cab64606d7e2aa651ffa8538caedacbb6b6..c8b522dcfcea626838eecf7deef3f44121aebc59 100644 (file)
@@ -391,9 +391,7 @@ static void propertyMapToRemoteInfo(const QMap<QString, QString> &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