Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Fix bug

Neeraj Gupta6d06c02148c7
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<List<FileMLInstruction>> getFilesForMlIndexing() async {
final List<FileMLInstruction> filesWithoutLocalID = [];
final List<FileMLInstruction> 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(