Commit 961d3ab
committed
runtime: fix makezero lint in appendNewlineToQueuedMessage
Replace make([]T, len)+copy with append(nil, src...) to avoid appending
to a non-zero-initialized slice, which triggers the makezero linter.
Assisted-By: docker-agent1 parent 17b5d85 commit 961d3ab
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
0 commit comments