From 6c9683c9bfeca69fb814327bd1afda6b4e2c1bfe Mon Sep 17 00:00:00 2001 From: Miccah Date: Thu, 27 Aug 2026 12:04:58 -0700 Subject: [PATCH] [chore] Correct NewWebhookCustomRegex doc comment An unexported type is no longer returned from this function. --- pkg/custom_detectors/custom_detectors.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/custom_detectors/custom_detectors.go b/pkg/custom_detectors/custom_detectors.go index 8f267491a..2893b4598 100644 --- a/pkg/custom_detectors/custom_detectors.go +++ b/pkg/custom_detectors/custom_detectors.go @@ -37,9 +37,7 @@ var _ detectors.Detector = (*CustomRegexWebhook)(nil) var _ detectors.CustomFalsePositiveChecker = (*CustomRegexWebhook)(nil) var _ detectors.MaxSecretSizeProvider = (*CustomRegexWebhook)(nil) -// NewWebhookCustomRegex initializes and validates a CustomRegexWebhook. An -// unexported type is intentionally returned here to ensure the values have -// been validated. +// NewWebhookCustomRegex initializes and validates a CustomRegexWebhook. func NewWebhookCustomRegex(pb *custom_detectorspb.CustomRegex) (*CustomRegexWebhook, error) { // TODO: Return all validation errors. if err := ValidateKeywords(pb.Keywords); err != nil {