Skip to content

Commit 710ab01

Browse files
committed
Simplify ps1 syntax
The old way worked, but copilot reviews kept flagging it as wrong anyway. So we're just appeasing it.
1 parent 6fd4c22 commit 710ab01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/Get-ExternalSymbolFiles.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Function Get-PackageVersions() {
9393
}
9494

9595
Function Get-PackageVersion($id) {
96-
$version = Get-PackageVersions | Select-Object -ExpandProperty $id -ErrorAction SilentlyContinue
96+
$version = (Get-PackageVersions)[$id]
9797
if (!$version) {
9898
Write-Error "No package version found in Directory.Packages.props for the package '$id'"
9999
}

0 commit comments

Comments
 (0)