Commit ebca5fc
committed
fix(package-manager): fix ternary syntax error in executor.ts spawn chain
The .on() call was incorrectly placed inside each branch of the ternary
operator instead of being chained after the ternary resolves to a
ChildProcess instance. Wrap the ternary in parentheses and chain .on()
outside so it applies to whichever spawn() call was selected.
Fixes syntax error identified in #32892 review.1 parent d89a6f5 commit ebca5fc
File tree
1 file changed
+9
-7
lines changed- packages/angular_devkit/schematics/tasks/package-manager
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
0 commit comments