Skip to content

Commit

Permalink
#81 remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-dammeier committed Oct 15, 2024
1 parent 071289d commit 25d6442
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/application/ecosystemConfigUseCase.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"github.com/cloudogu/k8s-blueprint-operator/pkg/domain"
"github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common"
"github.com/cloudogu/k8s-blueprint-operator/pkg/domain/ecosystem"
"github.com/cloudogu/k8s-registry-lib/config"
"sigs.k8s.io/controller-runtime/pkg/log"
"slices"
Expand Down Expand Up @@ -212,14 +211,6 @@ func (useCase *EcosystemConfigUseCase) applyDiff(doguConfig config.DoguConfig, d
return updatedEntries, errors.Join(errs...)
}

func callIfNotEmpty[T ecosystem.RegistryConfigEntry | common.RegistryConfigKey](ctx context.Context, collection []T, fn func(context.Context, []T) error) error {
if len(collection) > 0 {
return fn(ctx, collection)
}

return nil
}

func (useCase *EcosystemConfigUseCase) markApplyConfigStart(ctx context.Context, blueprintSpec *domain.BlueprintSpec) error {
blueprintSpec.StartApplyRegistryConfig()
err := useCase.blueprintRepository.Update(ctx, blueprintSpec)
Expand Down

0 comments on commit 25d6442

Please sign in to comment.