diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 1cb8a5ab5..c11a318b9 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -340,7 +340,6 @@ function ProcessReplace { foreach ($element in $matrix) { $replacement = [MatrixParameter[]]@() if (!$element -or $element.Count -eq 0) { - $replaceMatrix += CreateMatrixCombinationScalar $replacement $displayNamesLookup continue } @@ -377,7 +376,6 @@ function ProcessEnvironmentVariableReferences([array]$matrix, $displayNamesLooku foreach ($element in $matrix) { $updated = [MatrixParameter[]]@() if (!$element -or $element.Count -eq 0) { - $updatedMatrix += CreateMatrixCombinationScalar $updated $displayNamesLookup continue }