fix(sca): suppress unused lint on SCA scaffolding helpers

This commit is contained in:
2026-05-27 19:19:05 +02:00
parent 44fce84a4d
commit d2b86c779b
2 changed files with 2 additions and 0 deletions

View File

@@ -511,6 +511,7 @@ func mapStripeCardErrCode(code stripe.ErrorCode) string {
return "CARD_DECLINED"
}
//nolint:unused // wired into Convert cart later
func appURLForHandler(r *http.Request) string {
scheme := "http"
if r.TLS != nil || r.Header.Get("X-Forwarded-Proto") == "https" {

View File

@@ -301,6 +301,7 @@ func attrsToMap(a []any) map[string]any {
return m
}
//nolint:unused // called from ConvertCart in the next update
func OrderRequiresAction(userID, orderID uint, paymentIntentID string) {
e := event{
Event: eventOrderRequiresAction,