Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Mar 20, 2024
1 parent 1542319 commit 6d74c69
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
*/
import Bugsnag from '@bugsnag/js'
import getGeocoder from '@opentripplanner/geocoder'
import { Feature, Geometry, FeatureCollection, GeoJsonProperties } from 'geojson'
import {

Check failure on line 10 in handler.ts

View workflow job for this annotation

GitHub Actions / test-lambda-function

Replace `⏎··Geometry,⏎··FeatureCollection,⏎··GeoJsonProperties⏎` with `·Geometry,·FeatureCollection,·GeoJsonProperties·`
Geometry,
FeatureCollection,
GeoJsonProperties
} from 'geojson'
import { OfflineResponse } from '@opentripplanner/geocoder/lib/apis/offline'

import {
Expand Down Expand Up @@ -120,11 +124,15 @@ export const makeGeocoderRequests = async (
})
)

const merged = responses.reduce<FeatureCollection<Geometry, GeoJsonProperties>>(
const merged = responses.reduce<
FeatureCollection<Geometry, GeoJsonProperties>
>(
(prev, cur, idx) => {
if (idx === 0) return cur
return mergeResponses({ customResponse: cur, primaryResponse: prev })
}, {type: "FeatureCollection", features: []})
},
{ features: [], type: 'FeatureCollection' }
)

return {
body: JSON.stringify(merged),
Expand Down

0 comments on commit 6d74c69

Please sign in to comment.