mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
removed unused variable
This commit is contained in:
@@ -267,8 +267,7 @@ function Get-VSExtensionVersion
|
|||||||
)
|
)
|
||||||
|
|
||||||
$instanceFolders = "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\" + (Get-VisualStudioInstallation -VSInstallType "VS").InstanceId
|
$instanceFolders = "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\" + (Get-VisualStudioInstallation -VSInstallType "VS").InstanceId
|
||||||
$stateContent = Get-Content -Path (Join-Path $instanceFolders '\state.packages.json')
|
$state = Get-Content -Path (Join-Path $instanceFolders '\state.packages.json') | ConvertFrom-Json
|
||||||
$state = $stateContent | ConvertFrom-Json
|
|
||||||
$packageVersion = ($state.packages | Where-Object { $_.id -eq $packageName }).version
|
$packageVersion = ($state.packages | Where-Object { $_.id -eq $packageName }).version
|
||||||
|
|
||||||
if (-not $packageVersion)
|
if (-not $packageVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user