Skip to content

Commit 3897ce2

Browse files
author
James Brundage
committed
Consolidate Aspects - Returning unmodified ScriptBlock when nothing to consolidate (re #413)
1 parent 8907690 commit 3897ce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Commands/Optimization/Optimizer-ConsolidateAspects.ps.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ PipeScript.Optimizer function ConsolidateAspects {
112112
})
113113

114114
$uniquePotentialNames = $potentialNames | Select-Object -Unique
115-
if ($uniquePotentialNames -and
116-
$uniquePotentialNames -isnot [Object[]]) {
115+
if ($uniquePotentialNames -and
116+
$uniquePotentialNames -isnot [Object[]]) {
117117
$consolidations[$k] = $uniquePotentialNames
118118
}
119119
}

0 commit comments

Comments
 (0)