diff options
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/matcher.go | 2 | ||||
-rw-r--r-- | modules/caddyhttp/fileserver/staticfiles.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go index 29805a2..8196131 100644 --- a/modules/caddyhttp/fileserver/matcher.go +++ b/modules/caddyhttp/fileserver/matcher.go @@ -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) }, }) } diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go index 19f5f68..c6a01ac 100644 --- a/modules/caddyhttp/fileserver/staticfiles.go +++ b/modules/caddyhttp/fileserver/staticfiles.go @@ -21,7 +21,7 @@ func init() { caddy2.RegisterModule(caddy2.Module{ Name: "http.responders.file_server", - New: func() (interface{}, error) { return new(FileServer), nil }, + New: func() interface{} { return new(FileServer) }, }) } |