Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[locker] Remove remaining added comments

AswinAsokb19c31011303
diff --git a/web/apps/locker/src/services/sync/decrypt.ts b/web/apps/locker/src/services/sync/decrypt.ts
index 6d3145fd54..a173ce6dc7 100644
--- a/web/apps/locker/src/services/sync/decrypt.ts
+++ b/web/apps/locker/src/services/sync/decrypt.ts
@@ -39,8 +39,6 @@ export interface LockerTrashData {
const COLLECTION_PAYLOAD_VERSION = 1;
-// Mobile metadata can omit empty fields or encode them as null. Normalize
-// these while rejecting non-string values before they reach item views.
const itemText = z
.string()
.nullish()
diff --git a/web/apps/locker/tests/sync.test.ts b/web/apps/locker/tests/sync.test.ts
index 750461c20d..168b47b89f 100644
--- a/web/apps/locker/tests/sync.test.ts
+++ b/web/apps/locker/tests/sync.test.ts
@@ -195,8 +195,6 @@ test.each(
: { title: "Healthy file" },
);
- // The encrypted bad records remain persisted. Reopening must still
- // show the healthy items in both the vault and trash.
for (let load = 0; load < 2; load++) {
const result = await loadPersistedLockerState();
expect(result.collections).toHaveLength(2);