Enable ESLint prefer-const rule (#4349)

# Description of Changes
Enable ESLint [prefer-const
rule](https://eslint.org/docs/latest/rules/prefer-const)
This commit is contained in:
James Brunton
2025-09-04 15:09:29 +00:00
committed by GitHub
parent 003285506f
commit 74609e54fe
3 changed files with 7 additions and 13 deletions
@@ -182,7 +182,7 @@ export class EnhancedPDFProcessingService {
): Promise<ProcessedFile> {
const arrayBuffer = await file.arrayBuffer();
const pdf = await pdfWorkerManager.createDocument(arrayBuffer);
try {
const totalPages = pdf.numPages;
@@ -519,10 +519,7 @@ export class EnhancedPDFProcessingService {
this.notifyListeners();
// Force memory cleanup hint
if (typeof window !== 'undefined' && window.gc) {
let gc = window.gc;
setTimeout(() => gc(), 100);
}
setTimeout(() => window.gc?.(), 100);
}
/**