Skip to content

Commit 63dbdcb

Browse files
authored
Avoid LineInfoAnnotation allocations in MetadataFieldConverter JSON parsing (#7056)
1 parent 60cc3d0 commit 63dbdcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.Core/NuGet.Protocol/Converters/MetadataFieldConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
2525

2626
if (reader.TokenType == JsonToken.StartArray)
2727
{
28-
var array = JArray.Load(reader);
28+
var array = JArray.Load(reader, JsonUtility.DefaultLoadSettings);
2929
return string.Join(", ", array.Values<string>().Where(s => !string.IsNullOrWhiteSpace(s)));
3030
}
3131

0 commit comments

Comments
 (0)