Skip to content

Commit b999acb

Browse files
connieyCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1a0bf8e commit b999acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/scripts/Update-Version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if ($jsonObject.PSObject.Properties.Name -contains "packages" -and $jsonObject.p
7373
$package = $jsonObject.packages[$i]
7474

7575
if ($package -is [PSCustomObject] -and $package.PSObject.Properties.Name -contains "version") {
76-
$packageName = if ($package.PSObject.Properties.Name -contains "identifier") { $package.identifier } else { $packageName = $null }
76+
$packageName = if ($package.PSObject.Properties.Name -contains "identifier") { $package.identifier } else { $null }
7777

7878
if ($packageName) {
7979
Write-Debug " Updating version in $packageName`: $($package.version)$Version"

0 commit comments

Comments
 (0)