Skip to content

Commit dd8eac1

Browse files
committed
use a simpler pattern
1 parent 9861699 commit dd8eac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver/PipelineStageDefinitionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ public static PipelineStageDefinition<TInput, TOutput> GeoNear<TInput, TOutput>(
669669
GeoNearOptions<TInput, TOutput> options = null)
670670
{
671671
Ensure.IsNotNull(near, nameof(near));
672-
Ensure.That(near.Length, len => len is >= 2 and <= 3, nameof(near), "Legacy coordinates array should have 2 or 3 coordinates.");
672+
Ensure.That(near.Length, len => len is 2 or 3, nameof(near), "Legacy coordinates array should have 2 or 3 coordinates.");
673673
return GeoNear<TInput, double[], TOutput>(near, options);
674674
}
675675

0 commit comments

Comments
 (0)