Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
fix: remove using nil error (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso authored Oct 2, 2023
1 parent b2dedcd commit d4293c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/productdeploymentgenerator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (r *ProductDeploymentGeneratorReconciler) reconcile(ctx context.Context, ob
}

if project.Spec.Git.CommitTemplate == nil {
conditions.MarkFalse(obj, meta.ReadyCondition, v1alpha1.CommitTemplateEmptyReason, err.Error())
conditions.MarkFalse(obj, meta.ReadyCondition, v1alpha1.CommitTemplateEmptyReason, "commit template in project cannot be empty")

return ctrl.Result{}, fmt.Errorf("commit template in project cannot be empty")
}
Expand Down

0 comments on commit d4293c5

Please sign in to comment.