Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix mobile comment pruning lint

Manav Rathi6d9ccb4e8720
diff --git a/mobile/apps/auth/lib/models/code.dart b/mobile/apps/auth/lib/models/code.dart
index 9ba960db0b..2c060d7900 100644
--- a/mobile/apps/auth/lib/models/code.dart
+++ b/mobile/apps/auth/lib/models/code.dart
@@ -264,7 +264,9 @@ class Code {
} else if (algorithm == "sha512" || "algorithm.sha512" == algorithm) {
return Algorithm.sha512;
}
- } catch (e) {}
+ } catch (e) {
+ // Fall back to SHA-1.
+ }
return Algorithm.sha1;
}
diff --git a/mobile/apps/locker/lib/ui/pages/base_info_page.dart b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
index df03665302..6e8ec40004 100644
--- a/mobile/apps/locker/lib/ui/pages/base_info_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
@@ -226,7 +226,9 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>
_initialSelectedCollectionIds = Set<int>.of(initialSelection);
_hasLoadedCollectionSelection = true;
});
- } catch (e) {}
+ } catch (e) {
+ // Leave collection selection unavailable.
+ }
}
void _onToggleCollection(int collectionId) {
diff --git a/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart b/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
index 3205cb68a2..2e827efebd 100644
--- a/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
+++ b/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
@@ -427,12 +427,12 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
});
return recentlyCreated + hidden;
} else {
- final List<Collection>
- collections = CollectionsService.instance.getCollectionsForUI(
- // Collaborators can only add or remove files.
- includeCollab: widget.actionType == CollectionActionType.addFiles,
- includeUncategorized: true,
- );
+ final List<Collection> collections = CollectionsService.instance
+ .getCollectionsForUI(
+ // Collaborators can only add or remove files.
+ includeCollab: widget.actionType == CollectionActionType.addFiles,
+ includeUncategorized: true,
+ );
collections.sort((first, second) {
return compareAsciiLowerCaseNatural(
first.displayName,