Skip to content

Commit

Permalink
remove error and return false for anyContentsInCache()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabnsky committed Oct 19, 2023
1 parent 9b9512d commit ee6cec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/attr_cache/attr_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func (ac *AttrCache) anyContentsInCache(prefix string) bool {

cachedContentItem, err := ac.cacheMap.get(prefix)
if err != nil {
log.Err("can't find cache map item due to following error: ", err)
return false
} else { //TODO: this isn't looking at each child or not going through the sub tree. is that an issue?
if cachedContentItem.children != nil && cachedContentItem.valid() && cachedContentItem.exists() {
return true
Expand Down

0 comments on commit ee6cec8

Please sign in to comment.