Skip to content

Commit d298a87

Browse files
committed
defining variable for isOCIRepo
1 parent d789d9c commit d298a87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/appStore/chartGroup/ChartGroupService.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,9 @@ func (impl *ChartGroupServiceImpl) DeployDefaultChartOnCluster(bean *cluster2.Cl
780780
impl.logger.Errorw("error in getting app store by name", "appStoreName", item.Name, "err", err)
781781
return false, err
782782
}
783+
isOCIRepo := len(appStore.DockerArtifactStoreId) > 0
783784
var appStoreApplicationVersionId int
784-
if len(appStore.DockerArtifactStoreId) > 0 {
785+
if isOCIRepo {
785786
appStoreApplicationVersionId, err = impl.appStoreApplicationVersionRepository.FindLatestVersionByAppStoreIdForOCIRepo(appStore.Id)
786787
if err != nil {
787788
impl.logger.Errorw("DeployDefaultChartOnCluster, error in getting app store", "data", t, "err", err)

0 commit comments

Comments
 (0)