Răsfoiți Sursa

[document-updater] delete dead code for handling JSON documents (#25036)

GitOrigin-RevId: 59a2c5f0174cd041ebda1ea4898114e6fb6d41a5
Jakob Ackermann 1 an în urmă
părinte
comite
dd3956f5f4
1 a modificat fișierele cu 0 adăugiri și 8 ștergeri
  1. 0 8
      services/document-updater/app/js/DocumentManager.js

+ 0 - 8
services/document-updater/app/js/DocumentManager.js

@@ -160,14 +160,6 @@ const DocumentManager = {
       alreadyLoaded,
       alreadyLoaded,
     } = await DocumentManager.getDoc(projectId, docId)
     } = await DocumentManager.getDoc(projectId, docId)
 
 
-    if (oldLines != null && oldLines.length > 0 && oldLines[0].text != null) {
-      logger.debug(
-        { docId, projectId, oldLines, newLines },
-        'document is JSON so not updating'
-      )
-      return
-    }
-
     logger.debug(
     logger.debug(
       { docId, projectId, oldLines, newLines },
       { docId, projectId, oldLines, newLines },
       'setting a document via http'
       'setting a document via http'