Skip to content

Commit 50e2934

Browse files
panic handling
1 parent 633fdc3 commit 50e2934

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/ReleaseNoteService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (impl *ReleaseNoteServiceImpl) GetReleases(repository bean.Repository) ([]*
248248
return releaseList, err
249249
}
250250
var tagNameFromCache string
251-
if len(releaseCache) > 0 {
251+
if len(releaseCache) > 0 && len(releaseCache[cacheKey]) > 0 {
252252
tagNameFromCache = releaseCache[cacheKey][0].TagName
253253
}
254254
// if latest release tag is same with cache, return from cache

0 commit comments

Comments
 (0)