Skip to content

Commit

Permalink
Remove unnecessary variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-giulianasilva committed Dec 18, 2023
1 parent f447dd0 commit a16c4bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Providers/Maps/Google/Features/Zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ namespace Provider.Maps.Google.Feature {
const bounds = new google.maps.LatLngBounds();
this._map.markers.forEach(function (item) {
if (item.provider === undefined) return;
const loc = item.provider.position.toJSON();
bounds.extend(loc);
bounds.extend(item.provider.position.toJSON());
});

if (useShapes) {
this._map.shapes.forEach(function (item) {
if (item.provider === undefined) return;
const loc = item.providerBounds;
bounds.union(loc);
bounds.union(item.providerBounds);
});
}

Expand Down

0 comments on commit a16c4bd

Please sign in to comment.