We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 633fdc3 commit 50e2934Copy full SHA for 50e2934
1 file changed
pkg/ReleaseNoteService.go
@@ -248,7 +248,7 @@ func (impl *ReleaseNoteServiceImpl) GetReleases(repository bean.Repository) ([]*
248
return releaseList, err
249
}
250
var tagNameFromCache string
251
- if len(releaseCache) > 0 {
+ if len(releaseCache) > 0 && len(releaseCache[cacheKey]) > 0 {
252
tagNameFromCache = releaseCache[cacheKey][0].TagName
253
254
// if latest release tag is same with cache, return from cache
0 commit comments