Remove unnecessary error check

This commit is contained in:
Matthew Holt 2022-09-05 13:42:59 -06:00
parent 6e3063b15a
commit ad69503aef
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with 0 additions and 3 deletions

View File

@ -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 supported, generate a fake password we can compare against if needed
if hasher, ok := hba.Hash.(Hasher); ok { if hasher, ok := hba.Hash.(Hasher); ok {
hba.fakePassword = hasher.FakeHash() hba.fakePassword = hasher.FakeHash()
if err != nil {
return fmt.Errorf("generating anti-timing password hash: %v", err)
}
} }
repl := caddy.NewReplacer() repl := caddy.NewReplacer()