Skip to content

Commit 8fdfa4f

Browse files
Remove unnecessary length check in Guid parsing (#118181)
1 parent a42ac91 commit 8fdfa4f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.TryGet.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,12 +1351,6 @@ internal bool TryGetGuidCore(out Guid value)
13511351
}
13521352
else
13531353
{
1354-
if (ValueSpan.Length > JsonConstants.MaximumEscapedGuidLength)
1355-
{
1356-
value = default;
1357-
return false;
1358-
}
1359-
13601354
span = ValueSpan;
13611355
}
13621356

0 commit comments

Comments
 (0)