summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-05 13:42:59 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-05 13:42:59 -0600
commitad69503aefeead7782022e8e8698c16b1e6c638d (patch)
tree0fce8c35cc7254d2dcce6945d7d887fbdd205589
parent6e3063b15aa88179fefcf6f75001224de68c5dd2 (diff)
Remove unnecessary error check
-rw-r--r--modules/caddyhttp/caddyauth/basicauth.go3
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()