Skip to content

Commit d399202

Browse files
committed
Don't check for "id" in dependencyGroup
1 parent 7857fdf commit d399202

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/code/PSResourceInfo.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -724,12 +724,7 @@ public static bool TryConvertFromJson(
724724

725725
if (dependencyGroupsElement.ValueKind == JsonValueKind.Array)
726726
{
727-
foreach (
728-
JsonElement dependencyGroup in dependencyGroupsElement.EnumerateArray().Where(
729-
x => x.TryGetProperty("id", out JsonElement idProperty) &&
730-
!string.IsNullOrWhiteSpace(idProperty.GetString())
731-
)
732-
)
727+
foreach (JsonElement dependencyGroup in dependencyGroupsElement.EnumerateArray())
733728
{
734729
if (dependencyGroup.TryGetProperty("dependencies", out JsonElement dependenciesElement))
735730
{

0 commit comments

Comments
 (0)