Skip to content

Commit f5d812d

Browse files
sharmaB01mfedderly
andauthored
boolean-valid - Allow MultiLineStrings with only a single LineString (#2846)
Co-authored-by: mfedderly <24275386+mfedderly@users.noreply.github.com>
1 parent 4d68fb9 commit f5d812d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/turf-boolean-valid/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function booleanValid(feature: Feature<any> | Geometry) {
5151
}
5252
return true;
5353
case "MultiLineString":
54-
if (coords.length < 2) return false;
54+
if (coords.length < 1) return false;
5555
for (var i = 0; i < coords.length; i++) {
5656
if (coords[i].length < 2) return false;
5757
}

0 commit comments

Comments
 (0)