Skip to content

Commit

Permalink
remove duplicate logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gireesh-naidu committed Dec 6, 2023
1 parent c741a9d commit 24b115d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/helm-app/HelmAppService.go
Original file line number Diff line number Diff line change
Expand Up @@ -846,16 +846,7 @@ func (impl *HelmAppServiceImpl) TemplateChart(ctx context.Context, templateChart
return response, nil
}
func (impl *HelmAppServiceImpl) GetNotes(ctx context.Context, request *InstallReleaseRequest) (string, error) {
clusterId := int(request.ReleaseIdentifier.ClusterConfig.ClusterId)
config, err := impl.GetClusterConf(clusterId)
var notesTxt string
if err != nil {
impl.logger.Errorw("error in fetching cluster detail", "clusterId", clusterId, "err", err)
return notesTxt, err
}

request.ReleaseIdentifier.ClusterConfig = config

response, err := impl.helmAppClient.GetNotes(ctx, request)
if err != nil {
impl.logger.Errorw("error in fetching chart", "err", err)
Expand Down

0 comments on commit 24b115d

Please sign in to comment.