diff --git a/internal/ingress/controller/controller.go b/internal/ingress/controller/controller.go index 5d47960e2..78b23477c 100644 --- a/internal/ingress/controller/controller.go +++ b/internal/ingress/controller/controller.go @@ -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