From dd3956f5f4c014b6bdb30576eb8fa3269d5a25f6 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Wed, 23 Apr 2025 10:51:15 +0100 Subject: [PATCH] [document-updater] delete dead code for handling JSON documents (#25036) GitOrigin-RevId: 59a2c5f0174cd041ebda1ea4898114e6fb6d41a5 --- services/document-updater/app/js/DocumentManager.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/services/document-updater/app/js/DocumentManager.js b/services/document-updater/app/js/DocumentManager.js index 540a8a254c..dc20c27d7f 100644 --- a/services/document-updater/app/js/DocumentManager.js +++ b/services/document-updater/app/js/DocumentManager.js @@ -160,14 +160,6 @@ const DocumentManager = { alreadyLoaded, } = 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( { docId, projectId, oldLines, newLines }, 'setting a document via http'