Skip to content

Commit

Permalink
Revert "remove unnecessary variable"
Browse files Browse the repository at this point in the history
This reverts commit 71834f8.
  • Loading branch information
kristofgyuracz committed Feb 1, 2024
1 parent 2613f5b commit b0fcce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/telemetry/collector_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func normalizeNamespaceSlice(inputList []apiv1.Namespace) []apiv1.Namespace {
allKeys := make(map[string]bool)
uniqueList := []apiv1.Namespace{}
for _, item := range inputList {
if allKeys[item.Name] {
if _, value := allKeys[item.Name]; !value {
allKeys[item.Name] = true
uniqueList = append(uniqueList, item)
}
Expand Down

0 comments on commit b0fcce1

Please sign in to comment.