Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove use of unnecessary variable

ashilkndc47c073283c
diff --git a/lib/ui/map/map_screen.dart b/lib/ui/map/map_screen.dart
index 6eae2b696d..c4d5148a4f 100644
--- a/lib/ui/map/map_screen.dart
+++ b/lib/ui/map/map_screen.dart
@@ -80,7 +80,6 @@ class _MapScreenState extends State<MapScreen> {
Future<void> processFiles(List<EnteFile> files) async {
final List<ImageMarker> tempMarkers = [];
- bool hasAnyLocation = false;
EnteFile? mostRecentFile;
for (var file in files) {
if (file.hasLocation) {
@@ -93,7 +92,6 @@ class _MapScreenState extends State<MapScreen> {
);
continue;
}
- hasAnyLocation = true;
if (widget.center == null) {
if (mostRecentFile == null) {
@@ -115,7 +113,7 @@ class _MapScreenState extends State<MapScreen> {
}
}
- if (hasAnyLocation) {
+ if (tempMarkers.isNotEmpty) {
center = widget.center ??
LatLng(
mostRecentFile!.location!.latitude!,