Skip to content

Commit 4c606f2

Browse files
Merge pull request #117 from trimble-oss/addEmpty
Add IsEmpty func to CertCache
2 parents 32f9a63 + d7dd9cf commit 4c606f2

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)