瀏覽代碼

Don't warn if everything is fine

Hannah von Reth 5 年之前
父節點
當前提交
c03a5da670
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/libsync/discoveryphase.cpp

+ 1 - 3
src/libsync/discoveryphase.cpp

@@ -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