We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfdbb5 commit cb8bb43Copy full SHA for cb8bb43
1 file changed
Commands/Optimization/Optimizer-ConsolidateAspects.ps.ps1
@@ -129,6 +129,11 @@ PipeScript.Optimizer function ConsolidateAspects {
129
}
130
) -join [Environment]::NewLine)")
131
132
- # Update-PipeScript -RegexReplacement $regexReplacements -ScriptBlock $ScriptBlock -Prepend $prepend
+ if ($consolidations.Count) {
133
+ Update-PipeScript -RegexReplacement $regexReplacements -ScriptBlock $ScriptBlock -Prepend $prepend
134
+ }
135
+ else {
136
+ $ScriptBlock
137
138
139
0 commit comments