mirror of https://github.com/k3s-io/k3s
Remove unwanted else block from code.
Signed-off-by: hchiramm <hchiramm@redhat.com>pull/564/head
parent
40de2eeca0
commit
e3fd0b6936
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue