omit nil check
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user