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(
724724
725725 if ( dependencyGroupsElement . ValueKind == JsonValueKind . Array )
726726 {
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 ( ) )
732728 {
733729 if ( dependencyGroup . TryGetProperty ( "dependencies" , out JsonElement dependenciesElement ) )
734730 {
735731 if ( dependenciesElement . ValueKind == JsonValueKind . Array )
736732 {
737733 foreach (
738734 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 ( ) )
740737 )
741738 )
742739 {
You can’t perform that action at this time.
0 commit comments