mirror of
https://github.com/caddyserver/caddy.git
synced 2025-08-07 09:04:04 -04:00
Ignore irrelevant linter warning
This commit is contained in:
parent
731e6c2482
commit
42c888ee1d
@ -458,8 +458,6 @@ func parseOptAutoHTTPS(d *caddyfile.Dispenser, _ any) (any, error) {
|
|||||||
case "disable_certs":
|
case "disable_certs":
|
||||||
case "ignore_loaded_certs":
|
case "ignore_loaded_certs":
|
||||||
case "prefer_wildcard":
|
case "prefer_wildcard":
|
||||||
break
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "", d.Errf("auto_https must be one of 'off', 'disable_redirects', 'disable_certs', 'ignore_loaded_certs', or 'prefer_wildcard'")
|
return "", d.Errf("auto_https must be one of 'off', 'disable_redirects', 'disable_certs', 'ignore_loaded_certs', or 'prefer_wildcard'")
|
||||||
}
|
}
|
||||||
|
@ -1004,6 +1004,7 @@ type ECHPublisher interface {
|
|||||||
// PublishECHConfigListErrors is returned by ECHPublishers to describe one or more
|
// PublishECHConfigListErrors is returned by ECHPublishers to describe one or more
|
||||||
// errors publishing an ECH config list from PublishECHConfigList. A non-nil, empty
|
// errors publishing an ECH config list from PublishECHConfigList. A non-nil, empty
|
||||||
// value of this type should never be returned.
|
// 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
|
type PublishECHConfigListErrors map[string]error
|
||||||
|
|
||||||
func (p PublishECHConfigListErrors) Error() string {
|
func (p PublishECHConfigListErrors) Error() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user