Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Aug 7, 2024
1 parent 4f3bac4 commit 4c116a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/turf-line-slice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ function lineSlice(startPt, stopPt, line) {
clipCoords.push(coords[i]);
}
clipCoords.push(ends[1].geometry.coordinates);
return linestring(clipCoords, line.properties, { ...('id' in line && { id: line.id }) });
return linestring(clipCoords, line.properties, {
...("id" in line && { id: line.id }),
});
}

export { lineSlice };
Expand Down

0 comments on commit 4c116a0

Please sign in to comment.