mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 14:11:50 +08:00
Remove unnecessary error check
This commit is contained in:
parent
6e3063b15a
commit
ad69503aef
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user