mirror of
https://github.com/caddyserver/caddy.git
synced 2026-02-09 01:59:21 +08:00
Module.New() does not need to return an error
This commit is contained in:
@@ -20,7 +20,7 @@ type Module struct {
|
||||
// invoke methods on the returned value.
|
||||
// It must return a pointer; if not, it
|
||||
// is converted into one.
|
||||
New func() (interface{}, error)
|
||||
New func() interface{}
|
||||
}
|
||||
|
||||
func (m Module) String() string { return m.Name }
|
||||
|
||||
Reference in New Issue
Block a user