Skip to content

Commit d7dd9cf

Browse files
committed
Add IsEmpty func to CertCache
1 parent 32f9a63 commit d7dd9cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/coreconfig/cache/certcache.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ func (cc *CertCache) Items() map[string]*CertValue {
5757
}
5858
return cc.cache.Items()
5959
}
60+
61+
func (cc *CertCache) IsEmpty() bool {
62+
return cc.cache.IsEmpty() || len(cc.cache.Items()) == 0
63+
}

0 commit comments

Comments
 (0)