From 13c6a87514bd4e003451ef3243344266ae8877b0 Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Wed, 30 Oct 2024 15:34:32 -0700 Subject: [PATCH] remove useless ForEach-Object { [PSCustomObject] } --- eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 index 2e553b4f8..5129d757f 100644 --- a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 +++ b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 @@ -56,12 +56,11 @@ if (!(Test-Path $PRMatrixFile)) { Write-Host "Generating PR job matrix for $PackagePropertiesFolder" -$configs = Get-Content -Raw $PRMatrixFile | ConvertFrom-Json | ForEach-Object { [PSCustomObject]$_ } +$configs = Get-Content -Raw $PRMatrixFile | ConvertFrom-Json # calculate general targeting information and create our batches prior to generating any matrix $packageProperties = Get-ChildItem -Recurse "$PackagePropertiesFolder" *.json ` -| ForEach-Object { Get-Content -Path $_.FullName | ConvertFrom-Json } ` -| ForEach-Object { [PSCustomObject]$_ } +| ForEach-Object { Get-Content -Path $_.FullName | ConvertFrom-Json } # set default matrix config for each package if there isn't an override $packageProperties | ForEach-Object {