feat: implement strict null check

This commit is contained in:
yassinedorbozgithub
2025-01-13 20:10:19 +01:00
parent 11ef58d048
commit d2223d6bfd
19 changed files with 84 additions and 83 deletions

View File

@@ -48,7 +48,7 @@ export async function moveFiles(
const files = await fs.promises.readdir(sourceFolder);
// Filter only files (skip directories)
const filePaths = [];
const filePaths: string[] = [];
for (const file of files) {
const filePath = join(sourceFolder, file);
const stat = await fs.promises.stat(filePath);