Commit 48fc289
refactor(actionpins): remove redundant slice write-back and simplify warning message
- buildByRepoIndex: slices.SortFunc sorts the backing array in-place;
the subsequent byRepo[repo] = repoPins write-back was a no-op since
both the map value and the range variable share the same underlying
array. Remove the redundant assignment and the unused loop key.
- ResolveActionPin: replace a full fmt.Sprintf reassignment of warningMsg
with a string append (warningMsg += ": resolution failed"), making it
clear the base message is fixed and only the suffix varies.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a91954a commit 48fc289
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
| |||
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
340 | | - | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
| |||
0 commit comments