Skip to content

Commit

Permalink
Fix: remove unwanted guard
Browse files Browse the repository at this point in the history
It is not in upstream turf.js and shouldn't be here either.
  • Loading branch information
leiflinse-trivector committed Jan 30, 2024
1 parent fbe8e2d commit a6f6032
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/src/line_slice.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ Feature<LineString>? lineSlice(

final startVertex = nearestPointOnLine(coords, startPt);
final stopVertex = nearestPointOnLine(coords, stopPt);
if (startVertex.properties!['index'] == stopVertex.properties!['index']) {
// LineString do not allow 1 point lines
return null;
}
late final List<Feature<Point>> ends;
if (startVertex.properties!['index'] <= stopVertex.properties!['index']) {
ends = [startVertex, stopVertex];
Expand Down

0 comments on commit a6f6032

Please sign in to comment.