diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-05 13:42:59 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-05 13:42:59 -0600 |
commit | ad69503aefeead7782022e8e8698c16b1e6c638d (patch) | |
tree | 0fce8c35cc7254d2dcce6945d7d887fbdd205589 /modules/caddyhttp/caddyauth | |
parent | 6e3063b15aa88179fefcf6f75001224de68c5dd2 (diff) |
Remove unnecessary error check
Diffstat (limited to 'modules/caddyhttp/caddyauth')
-rw-r--r-- | modules/caddyhttp/caddyauth/basicauth.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/caddyhttp/caddyauth/basicauth.go b/modules/caddyhttp/caddyauth/basicauth.go index e090dac..eb6fd59 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() |