Skip to content

Commit fe98b20

Browse files
committed
Simplify and fix CRL observer IDP check
1 parent d045b38 commit fe98b20

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)