File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -724,19 +724,16 @@ public static bool TryConvertFromJson(
724
724
725
725
if ( dependencyGroupsElement . ValueKind == JsonValueKind . Array )
726
726
{
727
- foreach (
728
- JsonElement dependencyGroup in dependencyGroupsElement . EnumerateArray ( ) . Where (
729
- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
730
- )
731
- )
727
+ foreach ( JsonElement dependencyGroup in dependencyGroupsElement . EnumerateArray ( ) )
732
728
{
733
729
if ( dependencyGroup . TryGetProperty ( "dependencies" , out JsonElement dependenciesElement ) )
734
730
{
735
731
if ( dependenciesElement . ValueKind == JsonValueKind . Array )
736
732
{
737
733
foreach (
738
734
JsonElement dependency in dependenciesElement . EnumerateArray ( ) . Where (
739
- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
735
+ x => x . TryGetProperty ( "id" , out JsonElement idProperty ) &&
736
+ ! string . IsNullOrWhiteSpace ( idProperty . GetString ( ) )
740
737
)
741
738
)
742
739
{
You can’t perform that action at this time.
0 commit comments