Merge pull request #134812 from skitt/enable-gocritic-unlambda

Avoid no-change lambdas
This commit is contained in:
Kubernetes Prow Robot
2025-10-23 15:43:34 -07:00
committed by GitHub
9 changed files with 7 additions and 15 deletions

View File

@@ -152,7 +152,7 @@ func (dc *DeploymentController) getReplicaFailures(allRSs []*apps.ReplicaSet, ne
}
// used for unit testing
var nowFn = func() time.Time { return time.Now() }
var nowFn = time.Now
// requeueStuckDeployment checks whether the provided deployment needs to be synced for a progress
// check. It returns the time after the deployment will be requeued for the progress check, 0 if it

View File

@@ -766,7 +766,7 @@ func DeploymentProgressing(deployment *apps.Deployment, newStatus *apps.Deployme
}
// used for unit testing
var nowFn = func() time.Time { return time.Now() }
var nowFn = time.Now
// DeploymentTimedOut considers a deployment to have timed out once its condition that reports progress
// is older than progressDeadlineSeconds or a Progressing condition with a TimedOutReason reason already