Skip to content

Commit

Permalink
Merge pull request #108 from WindSekirun/test-mr-for-coverage
Browse files Browse the repository at this point in the history
[TEST] Some code refactor
  • Loading branch information
WindSekirun (wind.seo) authored Mar 5, 2021
2 parents b02f7d0 + 90c3bfb commit 0683632
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/calculator/AirportDetailCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,10 @@ export function getAirportFrequency(airport: AirportDetailItem) {
}

export function getAirportMarkers(airport: AirportDetailItem) {
const markers: MarkerData[] = [];
airport.runways.forEach((element) => {
markers.push(
MarkerData.makeByRunway(
element,
new LatLng(element.ends[0].lat, element.ends[0].lon)
)
);
});
return markers;
return airport.runways.map((element) =>
MarkerData.makeByRunway(
element,
new LatLng(element.ends[0].lat, element.ends[0].lon)
)
);
}

0 comments on commit 0683632

Please sign in to comment.