Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Saia <iam@petesaia.com>
  • Loading branch information
psaia committed May 23, 2024
1 parent a2b0937 commit 809e21f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/controllers/healthcheck_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,12 @@ func (r *HealthCheckReconciler) createSubmitRemedyWorkflow(ctx context.Context,
}

func (r *HealthCheckReconciler) watchWorkflowReschedule(ctx context.Context, req ctrl.Request, log logr.Logger, wfNamespace, wfName string, hc *activemonitorv1alpha1.HealthCheck) error {
var now metav1.Time
then := metav1.Time{Time: time.Now()}
repeatAfterSec := hc.Spec.RepeatAfterSec
var (
maxTime time.Duration
minTime time.Duration
now metav1.Time
maxTime, minTime time.Duration
)
then := metav1.Time{Time: time.Now()}
repeatAfterSec := hc.Spec.RepeatAfterSec
if hc.Spec.BackoffMax == 0 {
maxTime = time.Duration(hc.Spec.Workflow.Timeout/2) * time.Second
if maxTime <= 0 {
Expand Down

0 comments on commit 809e21f

Please sign in to comment.