From dd7c10a29a7b8d3b8326d16d6655e3ddc7ce14ff Mon Sep 17 00:00:00 2001 From: randytqwjp Date: Fri, 6 Dec 2024 16:49:31 +0900 Subject: [PATCH] fix lint --- internal/controller/tortoise_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/tortoise_controller.go b/internal/controller/tortoise_controller.go index 5d6a80a..8c51843 100644 --- a/internal/controller/tortoise_controller.go +++ b/internal/controller/tortoise_controller.go @@ -240,7 +240,7 @@ func (r *TortoiseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ return ctrl.Result{}, err } scalingActive := r.HpaService.CheckHpaMetricStatus(ctx, hpa) - if scalingActive == false && tortoise.Spec.UpdateMode == autoscalingv1beta3.UpdateModeAuto && tortoise.Status.TortoisePhase == autoscalingv1beta3.TortoisePhaseWorking { + if !scalingActive && tortoise.Spec.UpdateMode == autoscalingv1beta3.UpdateModeAuto && tortoise.Status.TortoisePhase == autoscalingv1beta3.TortoisePhaseWorking { tortoise.Status.TortoisePhase = v1beta3.TortoisePhaseEmergency }