Skip to content

armgit / ente

Public Imported from GitHub
0

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

lint

Manav Rathi83853e579f4b
diff --git a/web/packages/gallery/services/upload/upload-service.ts b/web/packages/gallery/services/upload/upload-service.ts
index 35f61aa0bb..b425aa7f41 100644
--- a/web/packages/gallery/services/upload/upload-service.ts
+++ b/web/packages/gallery/services/upload/upload-service.ts
@@ -1,6 +1,4 @@
// TODO: Audit this file
-/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { streamEncryptionChunkSize } from "ente-base/crypto/libsodium";
@@ -879,8 +877,7 @@ const readImageOrVideoDetails = async (uploadItem: UploadItem) => {
// @ts-ignore
const fileTypeInfo = await detectFileTypeInfoFromChunk(async () => {
const reader = stream.getReader();
- // @ts-ignore
- const chunk = (await reader.read())!.value;
+ const chunk = (await reader.read()).value;
await reader.cancel();
return chunk;
}, uploadItemFileName(uploadItem));