Skip to content

Commit e940131

Browse files
committed
fixed issue with value type
1 parent 0217e55 commit e940131

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PolylineAlgorithm.Abstraction/PolylineEncoding.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static bool TryReadValue(ref int variance, ref ReadOnlyMemory<char> buffe
9292
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9393
public static double Denormalize(int value, CoordinateValueType type) {
9494
// Validate that the type is not None, as it does not represent a valid coordinate value type.
95-
if (type == CoordinateValueType.None || type == CoordinateValueType.Latitude || type == CoordinateValueType.Longitude) {
95+
if (type == CoordinateValueType.None) {
9696
throw new ArgumentOutOfRangeException(nameof(type), string.Format(ExceptionMessageResource.ArgumentCannotBeCoordinateCoordinateValueTypeErrorFormat, type.ToString()));
9797
}
9898

0 commit comments

Comments
 (0)