Commit fe391d7b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #37350 from chentao1596/delete-meaningless-judgments

Automatic merge from submit-queue (batch tested with PRs 39280, 37350, 39389, 39390, 39313) delete meaningless judgments What this PR does / why we need it: Whether "err" is nil or not, "err" can be return, so the judgment "err !=nil " is unnecessary
parents 27850a79 6d4341b3
...@@ -171,10 +171,7 @@ func (p *podWorkers) managePodLoop(podUpdates <-chan UpdatePodOptions) { ...@@ -171,10 +171,7 @@ func (p *podWorkers) managePodLoop(podUpdates <-chan UpdatePodOptions) {
updateType: update.UpdateType, updateType: update.UpdateType,
}) })
lastSyncTime = time.Now() lastSyncTime = time.Now()
if err != nil { return err
return err
}
return nil
}() }()
// notify the call-back function if the operation succeeded or not // notify the call-back function if the operation succeeded or not
if update.OnCompleteFunc != nil { if update.OnCompleteFunc != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment