refactor: simplify buffer conversion logic in Google Drive provider and enhance download file schema validation

This commit is contained in:
bibhanshu12
2025-07-06 20:41:33 +05:30
parent 006b5ef0c7
commit 4991a7ba32
6 changed files with 19 additions and 37 deletions

View File

@@ -195,7 +195,7 @@ export function useDownloadFile() {
// Track download progress if the response supports it
const contentLength = response.headers.get("Content-Length");
const total = contentLength ? parseInt(contentLength, 10) : 0;
const total = contentLength ? Number.parseInt(contentLength, 10) : 0;
let loaded = 0;
if (response.body && total > 0) {