tenseleyflow/shithub / 5196a97

Browse files

Fix SP03 lint issues

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
5196a976acfbfcaa6b824cc518df94c5b95e8d30
Parents
c8156e7
Tree
99183d1

2 changed files

StatusFile+-
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 (
1818
 	FeatureOrgSecretTeams              Feature = "org.secret_teams"
1919
 	FeatureOrgAdvancedBranchProtection Feature = "org.advanced_branch_protection"
2020
 	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.
2222
 	FeatureOrgActionsVariables         Feature = "org.actions_org_variables"
2323
 	FeatureOrgPrivateCollaboration     Feature = "org.private_collaboration_limit"
2424
 	FeatureOrgStorageQuota             Feature = "org.storage_quota"
internal/web/handlers/orgs/billing_webhook.gomodified
@@ -261,13 +261,6 @@ func stripeCustomerID(customer *stripeapi.Customer) string {
261261
 	return strings.TrimSpace(customer.ID)
262262
 }
263263
 
264
-func stripeSubscriptionID(sub *stripeapi.Subscription) string {
265
-	if sub == nil {
266
-		return ""
267
-	}
268
-	return strings.TrimSpace(sub.ID)
269
-}
270
-
271264
 func stripeSubscriptionItemID(items *stripeapi.SubscriptionItemList) string {
272265
 	if items == nil || len(items.Data) == 0 || items.Data[0] == nil {
273266
 		return ""