Merge pull request #72816 from humblec/md-1

Remove unwanted else block from code.
pull/564/head
Kubernetes Prow Robot 2019-01-17 11:20:55 -08:00 committed by GitHub
commit c13f9f7272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -720,9 +720,9 @@ func refresh(pdbClient policyclientset.PodDisruptionBudgetInterface, pdb *policy
newPdb, err := pdbClient.Get(pdb.Name, metav1.GetOptions{})
if err == nil {
return newPdb
} else {
return pdb
}
return pdb
}
func (dc *DisruptionController) writePdbStatus(pdb *policy.PodDisruptionBudget) error {