From b6dd857bd606f3b12451bcba372e5a0c3a3bcbb0 Mon Sep 17 00:00:00 2001 From: Eriks Zelenka Date: Sun, 9 Jun 2024 21:06:48 +0100 Subject: [PATCH] fix comment --- pkg/kor/namespaces.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/kor/namespaces.go b/pkg/kor/namespaces.go index 1a80df84..876b6c86 100644 --- a/pkg/kor/namespaces.go +++ b/pkg/kor/namespaces.go @@ -132,7 +132,6 @@ func processNamespaces( dynamicClient dynamic.Interface, filterOpts *filters.Options, ) ([]string, error) { - var unusedNamespaces []string namespaces, err := clientset.CoreV1().Namespaces().List( @@ -156,7 +155,7 @@ func processNamespaces( continue } - // skipping two namespaces and default resources here + // skipping default resources here resourceFound, err := isErrorOrNamespaceContainsResources( ctx, clientset, @@ -172,7 +171,6 @@ func processNamespaces( if !resourceFound { unusedNamespaces = append(unusedNamespaces, namespace.Name) } - } return unusedNamespaces, nil }