From 42acdad9e541192185fe2ce64e72430ab032ca16 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 7 Jul 2019 14:12:22 -0600 Subject: Fix error handling with Validate when loading modules (fixes #2658) The return statement was improperly nested in context.go --- modules/caddyhttp/fileserver/staticfiles.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/caddyhttp/fileserver/staticfiles.go') 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) +) -- cgit v1.2.3