Remove unwanted else block from code.

Signed-off-by: hchiramm <hchiramm@redhat.com>
pull/564/head
hchiramm 2019-01-11 16:46:39 +05:30
parent 40de2eeca0
commit e3fd0b6936
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 {