Removed wrong code

This commit is contained in:
Rodrigo Villablanca 2020-04-20 12:30:18 -04:00
parent 837d370ab2
commit ecc20461aa

View file

@ -198,10 +198,6 @@ func (n *NGINXController) syncIngress(interface{}) error {
// CheckIngress returns an error in case the provided ingress, when added
// to the current configuration, generates an invalid configuration
func (n *NGINXController) CheckIngress(ing *networking.Ingress) error {
//TODO: this is wrong
if n == nil {
return fmt.Errorf("cannot check ingress on a nil ingress controller")
}
if ing == nil {
// no ingress to add, no state change