Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Refactor

Neeraj Gupta9b5d6cd5a162
diff --git a/mobile/lib/utils/ml_util.dart b/mobile/lib/utils/ml_util.dart
index c901e8dba3..8203612921 100644
--- a/mobile/lib/utils/ml_util.dart
+++ b/mobile/lib/utils/ml_util.dart
@@ -97,12 +97,14 @@ Future<List<FileMLInstruction>> getFilesForMlIndexing() async {
}
}
for (final EnteFile enteFile in hiddenFiles) {
- 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(