mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 23:15:48 +02:00
Some improvements for golint, ineffassign and misspell
This commit is contained in:
@@ -419,9 +419,8 @@ func (c *Cluster) deletePodDisruptionBudget() error {
|
||||
}
|
||||
if k8sutil.ResourceNotFound(err2) {
|
||||
return true, nil
|
||||
} else {
|
||||
return false, err2
|
||||
}
|
||||
return false, err2
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not delete pod disruption budget: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user