diff --git a/packages/sdk-android/src/installer.ts b/packages/sdk-android/src/installer.ts index 636018944d..e8f2e8a561 100644 --- a/packages/sdk-android/src/installer.ts +++ b/packages/sdk-android/src/installer.ts @@ -101,10 +101,10 @@ const _findFolderWithFile = (dir: string, fileToFind: string) => { return dir; } let foundDir; - fsReaddirSync(dir).forEach((subDirName) => { + fsReaddirSync(dir).forEach((subDirName: string) => { // not a directory check - if (!fsLstatSync(subDirName).isDirectory()) return; const subDir = path.join(dir, subDirName); + if (!fsLstatSync(subDir).isDirectory()) return; const foundSubDir = _findFolderWithFile(subDir, fileToFind); if (foundSubDir) { foundDir = foundSubDir;