Ignore irrelevant linter warning

This commit is contained in:
Matthew Holt 2025-08-04 16:28:13 -06:00
parent 731e6c2482
commit 42c888ee1d
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
2 changed files with 1 additions and 2 deletions

View File

@ -458,8 +458,6 @@ func parseOptAutoHTTPS(d *caddyfile.Dispenser, _ any) (any, error) {
case "disable_certs":
case "ignore_loaded_certs":
case "prefer_wildcard":
break
default:
return "", d.Errf("auto_https must be one of 'off', 'disable_redirects', 'disable_certs', 'ignore_loaded_certs', or 'prefer_wildcard'")
}

View File

@ -1004,6 +1004,7 @@ type ECHPublisher interface {
// PublishECHConfigListErrors is returned by ECHPublishers to describe one or more
// errors publishing an ECH config list from PublishECHConfigList. A non-nil, empty
// value of this type should never be returned.
// nolint:errname // The linter wants "Error" convention, but this is a multi-error type.
type PublishECHConfigListErrors map[string]error
func (p PublishECHConfigListErrors) Error() string {