mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +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
|
||||
$stateContent = Get-Content -Path (Join-Path $instanceFolders '\state.packages.json')
|
||||
$state = $stateContent | ConvertFrom-Json
|
||||
$state = Get-Content -Path (Join-Path $instanceFolders '\state.packages.json') | ConvertFrom-Json
|
||||
$packageVersion = ($state.packages | Where-Object { $_.id -eq $packageName }).version
|
||||
|
||||
if (-not $packageVersion)
|
||||
|
||||
Reference in New Issue
Block a user