From ecc20461aa94a8907ab86bca62f765c4564b30b5 Mon Sep 17 00:00:00 2001 From: Rodrigo Villablanca Date: Mon, 20 Apr 2020 12:30:18 -0400 Subject: [PATCH] Removed wrong code --- internal/ingress/controller/controller.go | 4 ---- 1 file changed, 4 deletions(-) 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