Commit 1c50d81
fix(review): fix slice preallocation bug and remove redundant assignment
In answer.go, make([]string, len(...)) pre-fills with empty strings
before appending, producing a slice like ["", "", "composer", "pip"].
Use capacity instead of length.
In stack.go, the Symfony non-interactive case redundantly sets
answers.Stack to GenericStack — it was already set before the switch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 47f473e commit 1c50d81
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments