Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove unnecessary use of variable

ashilkn7b13e3cd0503
diff --git a/lib/ui/viewer/location/location_screen.dart b/lib/ui/viewer/location/location_screen.dart
index b05db7a952..cdfa7f92be 100644
--- a/lib/ui/viewer/location/location_screen.dart
+++ b/lib/ui/viewer/location/location_screen.dart
@@ -198,9 +198,10 @@ class _LocationGalleryWidgetState extends State<LocationGalleryWidget> {
.locationTagEntity
.item
.centerPoint;
+
Future<FileLoadResult> filterFiles() async {
- final FileLoadResult result = await fileLoadResult;
- //wait for ignored files to be removed after init
+ //waiting for allFilesWithLocation to be initialized
+ await fileLoadResult;
final stopWatch = Stopwatch()..start();
final filesInLocation = allFilesWithLocation;
filesInLocation.removeWhere((f) {
@@ -220,7 +221,7 @@ class _LocationGalleryWidgetState extends State<LocationGalleryWidget> {
return Future.value(
FileLoadResult(
filesInLocation,
- result.hasMore,
+ false,
),
);
}