Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Feb 10, 2025
1 parent 44019a4 commit a723d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/controller/internal/controller/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *GitRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Reques
}
if exists {
logger.V(9).Info("repository already exists, running in read-only mode", "name", repo.Name, "namespace", repo.Namespace)
return r.handleExistingRepo(ctx, repo)
return r.handleExistingRepo(repo)
}

utils.MarkCondition(repo.SetCondition, v1alpha1.ReadonlyConditionType, v1.ConditionFalse, v1alpha1.ReadonlyConditionReason, "")
Expand Down Expand Up @@ -239,7 +239,7 @@ func (r *GitRepositoryReconciler) isAlreadyExists(repository *v1alpha1.GitReposi
return !repository.Status.HasID(), nil
}

func (r *GitRepositoryReconciler) handleExistingRepo(ctx context.Context, repo *v1alpha1.GitRepository) (reconcile.Result, error) {
func (r *GitRepositoryReconciler) handleExistingRepo(repo *v1alpha1.GitRepository) (reconcile.Result, error) {
existingRepo, err := r.getRepository(repo.Spec.Url)
if err != nil && !errors.IsNotFound(err) {
utils.MarkCondition(repo.SetCondition, v1alpha1.SynchronizedConditionType, v1.ConditionFalse, v1alpha1.SynchronizedConditionReasonError, err.Error())
Expand Down

0 comments on commit a723d99

Please sign in to comment.