From 1785ea8723b1e32b8b00bbae0c27ffaba5469213 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 28 Jul 2020 13:11:35 +0300 Subject: [PATCH] Refactoring --- .../modules/home/components/widget/lib/maps/leaflet-map.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts index 743bea73ac..49fdd19677 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts @@ -249,11 +249,10 @@ export default abstract class LeafletMap { if (!expression) return null; const lat = expression[this.options.latKeyName]; const lng = expression[this.options.lngKeyName]; - if (!isDefinedAndNotNull(lat) || isNaN(lat) || !isDefinedAndNotNull(lng) || isNaN(lng)){ + if (!isDefinedAndNotNull(lat) || isNaN(lat) || !isDefinedAndNotNull(lng) || isNaN(lng)) { return null; } - else - return L.latLng(lat, lng) as L.LatLng; + return L.latLng(lat, lng) as L.LatLng; } convertPositionPolygon(expression: Array<[number, number]>): L.LatLngExpression[] {