mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 15:53:17 +00:00
Module.New() does not need to return an error
This commit is contained in:
parent
67d32e6779
commit
2fd98cb040
19 changed files with 29 additions and 36 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
func init() {
|
||||
caddy2.RegisterModule(caddy2.Module{
|
||||
Name: "http.matchers.file",
|
||||
New: func() (interface{}, error) { return new(FileMatcher), nil },
|
||||
New: func() interface{} { return new(FileMatcher) },
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue