mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Remove unwanted else block from code.
Signed-off-by: hchiramm <hchiramm@redhat.com>
This commit is contained in:
		@@ -720,9 +720,9 @@ func refresh(pdbClient policyclientset.PodDisruptionBudgetInterface, pdb *policy
 | 
				
			|||||||
	newPdb, err := pdbClient.Get(pdb.Name, metav1.GetOptions{})
 | 
						newPdb, err := pdbClient.Get(pdb.Name, metav1.GetOptions{})
 | 
				
			||||||
	if err == nil {
 | 
						if err == nil {
 | 
				
			||||||
		return newPdb
 | 
							return newPdb
 | 
				
			||||||
	} else {
 | 
					 | 
				
			||||||
		return pdb
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						return pdb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (dc *DisruptionController) writePdbStatus(pdb *policy.PodDisruptionBudget) error {
 | 
					func (dc *DisruptionController) writePdbStatus(pdb *policy.PodDisruptionBudget) error {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user