Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 14:15 UTC
Remove unnecessary error check
Matthew Holt committed
Sep 5, 2022 at 13:42 UTC
ad69503aefeead7782022e8e8698c16b1e6c638d
1 file changed
-3
modules/caddyhttp/caddyauth/basicauth.go
-3
@@ -96,9 +96,6 @@ func (hba *HTTPBasicAuth) Provision(ctx caddy.Context) error {
96
// if supported, generate a fake password we can compare against if needed
97
if hasher, ok := hba.Hash.(Hasher); ok {
98
hba.fakePassword = hasher.FakeHash()
99
- if err != nil {
100
- return fmt.Errorf("generating anti-timing password hash: %v", err)
101
- }
99
}
100
101
repl := caddy.NewReplacer()