diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-07-07 14:12:22 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-07-07 14:12:22 -0600 |
commit | 42acdad9e541192185fe2ce64e72430ab032ca16 (patch) | |
tree | 01a810e4e60b5d66acd9f967536f094824ceec16 /modules/caddyhttp/fileserver | |
parent | 84f9f7cd606146f1a1d6717d369fc98509365de6 (diff) |
Fix error handling with Validate when loading modules (fixes #2658)
The return statement was improperly nested in context.go
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/staticfiles.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go index 67a337b..0bb910d 100644 --- a/modules/caddyhttp/fileserver/staticfiles.go +++ b/modules/caddyhttp/fileserver/staticfiles.go @@ -450,5 +450,9 @@ var defaultIndexNames = []string{"index.html"} const minBackoff, maxBackoff = 2, 5 -// Interface guard -var _ caddyhttp.Handler = (*FileServer)(nil) +// Interface guards +var ( + _ caddy.Provisioner = (*FileServer)(nil) + _ caddy.Validator = (*FileServer)(nil) + _ caddyhttp.Handler = (*FileServer)(nil) +) |