Repository navigation
Commit 6c6d3e2
committed
style(purchase,config): clear new-from-rev lint on OfferingClass diff
Resolve the three golangci-lint findings that --new-from-rev=origin/main
attributes to the #694 OfferingClass changes:
- errcheck: replace the silent `_ =` discard of SavePurchaseExecution on
the processPurchaseRecommendations error path with the existing
saveExecutionStatusBestEffort helper, which persists and logs the
audit-save failure instead of dropping it.
- gocritic unnamedResult: name the four results of
processPurchaseRecommendations (its return set grew to include error);
switch the trailing assignment from := to = accordingly.
- misspell: pre-694 behaviour -> behavior in the ValidOfferingClasses doc.
No behavior change to the purchase path; base-debt Lint/Security failures
are pre-existing on main and out of scope.1 parent f13fc38 commit 6c6d3e2
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| |||
0 commit comments