Skip to content

Commit

Permalink
Remove unused function (#3058)
Browse files Browse the repository at this point in the history
This fixes a linter error.
  • Loading branch information
weyfonk authored Nov 8, 2024
1 parent 12cb7e4 commit a42f7aa
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,13 +1143,6 @@ func getPollingIntervalDuration(gitrepo *v1alpha1.GitRepo) time.Duration {
return gitrepo.Spec.PollingInterval.Duration
}

func result(repoPolled bool, gitrepo *v1alpha1.GitRepo) reconcile.Result {
if repoPolled {
return reconcile.Result{RequeueAfter: getPollingIntervalDuration(gitrepo)}
}
return reconcile.Result{}
}

func webhookCommitChangedPredicate() predicate.Predicate {
return predicate.Funcs{
UpdateFunc: func(e event.UpdateEvent) bool {
Expand Down

0 comments on commit a42f7aa

Please sign in to comment.