Simplify and fix CRL observer IDP check (#8069)

The conditional introduced in
https://github.com/letsencrypt/boulder/pull/8067 contained a bug left
over from an earlier draft of the PR. Remove the zero-length check to
ensure the code matches the documented intent.
This commit is contained in:
Aaron Gable 2025-03-17 16:34:14 -05:00 committed by GitHub
parent 6071bedb52
commit 75a89f7a4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (p CRLProbe) Probe(timeout time.Duration) (bool, time.Duration) {
if err != nil {
return false, dur
}
if len(idps) != 0 && !slices.Contains(idps, p.url) {
if !slices.Contains(idps, p.url) {
return false, dur
}
}