fix: Fixes Point3D.Parse (#1305)

This commit is contained in:
Kamron Batman 2022-12-17 17:06:12 -08:00 committed by GitHub
parent 43d33759df
commit c266294e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -198,7 +198,7 @@ public struct Point3D
var offset = firstComma + 1;
var secondComma = s[offset..].IndexOfOrdinal(',');
if (secondComma == -1 || offset == secondComma)
if (secondComma == -1)
{
throw new FormatException($"The input string '{s}' was not in a correct format.");
}