mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-28 06:40:01 +08:00
Fix error handling with Validate when loading modules (fixes #2658)
The return statement was improperly nested in context.go
This commit is contained in:
@ -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)
|
||||
)
|
||||
|
Reference in New Issue
Block a user