From af57eefb255d1aacc8f8b90aceeba9e83d6b0128 Mon Sep 17 00:00:00 2001 From: ingalls Date: Thu, 10 Oct 2024 15:32:29 -0600 Subject: [PATCH] Fix lints --- tasks/hooks/src/adaptors/arcgis.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/hooks/src/adaptors/arcgis.ts b/tasks/hooks/src/adaptors/arcgis.ts index 74e8b51c0..e74ee30ff 100644 --- a/tasks/hooks/src/adaptors/arcgis.ts +++ b/tasks/hooks/src/adaptors/arcgis.ts @@ -38,17 +38,17 @@ export default async function arcgis(data: any): Promise { let geometry: Geometry; if (data.feat.geometry.type === 'Point') { - let geom = geojsonToArcGIS(data.feat.geometry) as Point; + const geom = geojsonToArcGIS(data.feat.geometry) as Point; if (!geom.x || !geom.y) throw new Error('Incompatible Geometry'); const proj = proj4('EPSG:4326', 'EPSG:3857', [ geom.x, geom.y ]); - geom.x = proj[0], - geom.y = proj[1], + geom.x = proj[0]; + geom.y = proj[1]; geometry = geom; } else if (data.feat.geometry.type === 'LineString') { - let geom = geojsonToArcGIS(data.feat.geometry) as Polyline; + const geom = geojsonToArcGIS(data.feat.geometry) as Polyline; geom.paths = geom.paths.map((paths) => { return paths.map((p) => { @@ -58,7 +58,7 @@ export default async function arcgis(data: any): Promise { geometry = geom; } else if (data.feat.geometry.type === 'Polygon') { - let geom = geojsonToArcGIS(data.feat.geometry) as Polygon; + const geom = geojsonToArcGIS(data.feat.geometry) as Polygon; geom.rings = geom.rings.map((ring) => { return ring.map((r) => {