Remove unused and redundant call to validate options (#26533)

This commit is contained in:
Peter Wilson
2024-04-19 10:21:15 +01:00
committed by GitHub
parent 7c9e4f39b6
commit 16cd58d478
2 changed files with 0 additions and 12 deletions

View File

@@ -50,13 +50,6 @@ func getOpts(opt ...Option) (options, error) {
return opts, nil
}
// ValidateOptions can be used to validate options before they are required.
func ValidateOptions(opt ...Option) error {
_, err := getOpts(opt...)
return err
}
// WithID provides an optional ID.
func WithID(id string) Option {
return func(o *options) error {