From 027b379cf9d53a12782781e586f79051461ab661 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 26 Jan 2017 23:11:29 +0100 Subject: Refactor controllers to use 'const' when possible --- src/scripts/controllers/scaleindicator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripts/controllers/scaleindicator.ts') diff --git a/src/scripts/controllers/scaleindicator.ts b/src/scripts/controllers/scaleindicator.ts index 0ff83486..789f2cc7 100644 --- a/src/scripts/controllers/scaleindicator.ts +++ b/src/scripts/controllers/scaleindicator.ts @@ -24,7 +24,7 @@ export class ScaleIndicatorController { } public update(): void { - let currentZoom = this.mapView.mapContainer.scaleX; + const currentZoom = this.mapView.mapContainer.scaleX; let newWidth; do { newWidth = (currentZoom * CELL_SIZE) / this.currentDivisor; -- cgit v1.2.3