Skip to content

Commit 75a89f7

Browse files
authored
Simplify and fix CRL observer IDP check (#8069)
The conditional introduced in #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.
1 parent 6071bed commit 75a89f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

observer/probers/crl/crl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (p CRLProbe) Probe(timeout time.Duration) (bool, time.Duration) {
5959
if err != nil {
6060
return false, dur
6161
}
62-
if len(idps) != 0 && !slices.Contains(idps, p.url) {
62+
if !slices.Contains(idps, p.url) {
6363
return false, dur
6464
}
6565
}

0 commit comments

Comments
 (0)