From 6d06c02148c7d911e4e7df2bf79515f13b28d480 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:27:28 +0530 Subject: [PATCH] [mob] Fix bug --- mobile/lib/utils/ml_util.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/lib/utils/ml_util.dart b/mobile/lib/utils/ml_util.dart index 9f06bdaedc..c901e8dba3 100644 --- a/mobile/lib/utils/ml_util.dart +++ b/mobile/lib/utils/ml_util.dart @@ -75,12 +75,14 @@ Future> getFilesForMlIndexing() async { final List filesWithoutLocalID = []; final List hiddenFilesToIndex = []; for (final EnteFile enteFile in enteFiles) { - final skip = _skipAnalysisEnteFile(enteFile); + if (_skipAnalysisEnteFile(enteFile)) { + continue; + } final shouldRunFaces = _shouldRunIndexing(enteFile, faceIndexedFileIDs, faceMlVersion); final shouldRunClip = _shouldRunIndexing(enteFile, clipIndexedFileIDs, clipMlVersion); - if (skip && !shouldRunFaces && !shouldRunClip) { + if (!shouldRunFaces && !shouldRunClip) { continue; } final instruction = FileMLInstruction(