From ad69503aefeead7782022e8e8698c16b1e6c638d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 5 Sep 2022 13:42:59 -0600 Subject: [PATCH] Remove unnecessary error check --- modules/caddyhttp/caddyauth/basicauth.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/caddyhttp/caddyauth/basicauth.go b/modules/caddyhttp/caddyauth/basicauth.go index e090dacd..eb6fd592 100644 --- a/modules/caddyhttp/caddyauth/basicauth.go +++ b/modules/caddyhttp/caddyauth/basicauth.go @@ -96,9 +96,6 @@ func (hba *HTTPBasicAuth) Provision(ctx caddy.Context) error { // if supported, generate a fake password we can compare against if needed if hasher, ok := hba.Hash.(Hasher); ok { hba.fakePassword = hasher.FakeHash() - if err != nil { - return fmt.Errorf("generating anti-timing password hash: %v", err) - } } repl := caddy.NewReplacer()