From 13a8a24e53ead3bd58b4079951c5f1a239bca9d0 Mon Sep 17 00:00:00 2001 From: Brandon Trecki Date: Tue, 30 Jul 2024 22:22:16 -0400 Subject: [PATCH] fix: use `total` in `createMarker` loop The `const total = 100;` is an unused variable and can be removed or used in the `createMarker` loop. --- samples/advanced-markers-animation/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/advanced-markers-animation/index.ts b/samples/advanced-markers-animation/index.ts index c11f3b5609..1c29225e71 100644 --- a/samples/advanced-markers-animation/index.ts +++ b/samples/advanced-markers-animation/index.ts @@ -58,7 +58,7 @@ // Create 100 markers to animate. google.maps.event.addListenerOnce(map, 'idle', () => { - for (let i = 0; i < 100; i++) { + for (let i = 0; i < total; i++) { createMarker(map, AdvancedMarkerElement); } }); @@ -106,4 +106,4 @@ initMap(); // [END maps_advanced_markers_animation] -export { }; \ No newline at end of file +export { };