horizoncd/horizon

View on GitHub
pkg/cluster/service/service.go

Summary

Maintainability
A
40 mins
Test Coverage
F
20%

Showing 1 of 1 total issue

Method service.SyncDBWithGitRepo has 6 return statements (exceeds 4 allowed).
Open

func (s service) SyncDBWithGitRepo(ctx context.Context, application *appmodels.Application,
cluster *clustermodels.Cluster) (*clustermodels.Cluster, error) {
templateFromFile, err := s.clusterGitRepo.GetClusterTemplate(ctx, application.Name, cluster.Name)
if err != nil {
return nil, err
Severity: Major
Found in pkg/cluster/service/service.go - About 40 mins to fix
    Category
    Status