Skip to content

Commit 5bd2df1

Browse files
scbeddazure-sdk
authored andcommitted
remove useless ForEach-Object { [PSCustomObject] }
1 parent 54863af commit 5bd2df1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ if (!(Test-Path $PRMatrixFile)) {
5656

5757
Write-Host "Generating PR job matrix for $PackagePropertiesFolder"
5858

59-
$configs = Get-Content -Raw $PRMatrixFile | ConvertFrom-Json | ForEach-Object { [PSCustomObject]$_ }
59+
$configs = Get-Content -Raw $PRMatrixFile | ConvertFrom-Json
6060

6161
# calculate general targeting information and create our batches prior to generating any matrix
6262
$packageProperties = Get-ChildItem -Recurse "$PackagePropertiesFolder" *.json `
63-
| ForEach-Object { Get-Content -Path $_.FullName | ConvertFrom-Json } `
64-
| ForEach-Object { [PSCustomObject]$_ }
63+
| ForEach-Object { Get-Content -Path $_.FullName | ConvertFrom-Json }
6564

6665
# set default matrix config for each package if there isn't an override
6766
$packageProperties | ForEach-Object {

0 commit comments

Comments
 (0)