Fix SP03 lint issues
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
5196a976acfbfcaa6b824cc518df94c5b95e8d30- Parents
-
c8156e7 - Tree
99183d1
5196a97
5196a976acfbfcaa6b824cc518df94c5b95e8d30c8156e7
99183d1| Status | File | + | - |
|---|---|---|---|
| M |
internal/entitlements/entitlements.go
|
1 | 1 |
| M |
internal/web/handlers/orgs/billing_webhook.go
|
0 | 7 |
internal/entitlements/entitlements.gomodified@@ -18,7 +18,7 @@ const ( | ||
| 18 | 18 | FeatureOrgSecretTeams Feature = "org.secret_teams" |
| 19 | 19 | FeatureOrgAdvancedBranchProtection Feature = "org.advanced_branch_protection" |
| 20 | 20 | FeatureOrgRequiredReviewers Feature = "org.required_reviewers" |
| 21 | - FeatureOrgActionsSecrets Feature = "org.actions_org_secrets" | |
| 21 | + FeatureOrgActionsSecrets Feature = "org.actions_org_secrets" // #nosec G101 -- entitlement feature key, not a credential. | |
| 22 | 22 | FeatureOrgActionsVariables Feature = "org.actions_org_variables" |
| 23 | 23 | FeatureOrgPrivateCollaboration Feature = "org.private_collaboration_limit" |
| 24 | 24 | FeatureOrgStorageQuota Feature = "org.storage_quota" |
internal/web/handlers/orgs/billing_webhook.gomodified@@ -261,13 +261,6 @@ func stripeCustomerID(customer *stripeapi.Customer) string { | ||
| 261 | 261 | return strings.TrimSpace(customer.ID) |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | -func stripeSubscriptionID(sub *stripeapi.Subscription) string { | |
| 265 | - if sub == nil { | |
| 266 | - return "" | |
| 267 | - } | |
| 268 | - return strings.TrimSpace(sub.ID) | |
| 269 | -} | |
| 270 | - | |
| 271 | 264 | func stripeSubscriptionItemID(items *stripeapi.SubscriptionItemList) string { |
| 272 | 265 | if items == nil || len(items.Data) == 0 || items.Data[0] == nil { |
| 273 | 266 | return "" |