omit nil check

This commit is contained in:
baschno
2025-05-15 21:11:04 +02:00
parent 8b966aaa7f
commit 32e5d91067

View File

@@ -13,7 +13,7 @@ func (r *TDSetReconciler) GetExpectedReplica(ctx context.Context, req ctrl.Reque
log := log.FromContext(ctx)
if tdSet.Spec.SchedulingConfig != nil && len(tdSet.Spec.SchedulingConfig) != 0 {
if len(tdSet.Spec.SchedulingConfig) != 0 {
now := time.Now()
hour := now.Hour()