summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/matcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/fileserver/matcher.go')
-rw-r--r--modules/caddyhttp/fileserver/matcher.go2
1 files changed, 1 insertions, 1 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) },
})
}