[chore] Correct NewWebhookCustomRegex doc comment

An unexported type is no longer returned from this function.
This commit is contained in:
Miccah
2026-08-27 12:04:58 -07:00
parent 1ea7fc1960
commit 6c9683c9bf
+1 -3
View File
@@ -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 {