Commit ef5be01
refactor(syncer): drop unused Err field from failed repo records
failedRepo carried both the repo path and the error returned by the
git invocation, but the error field was never read after assignment.
The per-repo failure reason is already streamed to stderr at execution
time via PrintMsgErr ("Failed: <repo>\n<err>"), and printSummary only
needs the repo path to print the trailing failed-repo list.
Replace the failedRepo struct with a plain []string and update
addFailed and the summary printer accordingly. The test that asserted
on stats.failed[0].Repo becomes stats.failed[0] — same coverage,
slightly cleaner.
Reported by GitHub Copilot on PR #26.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b852302 commit ef5be01
2 files changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | | - | |
| 65 | + | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
| |||
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
79 | | - | |
| 75 | + | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
| 78 | + | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
206 | | - | |
| 202 | + | |
207 | 203 | | |
208 | 204 | | |
209 | 205 | | |
| |||
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 244 | + | |
253 | 245 | | |
254 | 246 | | |
255 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments