Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Jun 9, 2024
1 parent bdd555b commit b6dd857
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/kor/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func processNamespaces(
dynamicClient dynamic.Interface,
filterOpts *filters.Options,
) ([]string, error) {

var unusedNamespaces []string

namespaces, err := clientset.CoreV1().Namespaces().List(
Expand All @@ -156,7 +155,7 @@ func processNamespaces(
continue
}

// skipping two namespaces and default resources here
// skipping default resources here
resourceFound, err := isErrorOrNamespaceContainsResources(
ctx,
clientset,
Expand All @@ -172,7 +171,6 @@ func processNamespaces(
if !resourceFound {
unusedNamespaces = append(unusedNamespaces, namespace.Name)
}

}
return unusedNamespaces, nil
}
Expand Down

0 comments on commit b6dd857

Please sign in to comment.