Removed the condition check for Group

This commit is contained in:
ray chen 2025-12-05 23:07:59 +00:00 committed by azure-sdk
parent 1dc34d1633
commit e699d11db0

View File

@ -529,8 +529,6 @@ function CreateOrUpdatePackageWorkItem($lang, $pkg, $verMajorMinor, $existingIte
# PackageProp object uses Group, while other places use GroupId, such as in work item fields and package csv files.
$pkgGroupId = if ($pkg.PSObject.Properties.Name -contains "GroupId") {
$pkg.GroupId
} elseif ($pkg.PSObject.Properties.Name -contains "Group") {
$pkg.Group
} else {
$null
}