Skip to content

Commit

Permalink
refactor: Renamed variable in feedGroupsExistsInMap
Browse files Browse the repository at this point in the history
  • Loading branch information
werniq committed Sep 29, 2024
1 parent 9bc9710 commit 4452a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/internal/controller/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func (r *ConfigMapHandler) validateConfigMapFeeds(ctx context.Context, obj clien

// feedGroupsExistsInMap returns true if hotNews contains feedGroups which exists in configMap
func (r *ConfigMapHandler) feedGroupsExistsInMap(hotNews newsaggregatorv1.HotNews, configMap *v1.ConfigMap) bool {
for _, feedGroupValues := range configMap.Data {
if slices.Contains(hotNews.Spec.FeedGroups, feedGroupValues) {
for feedGroupName, _ := range configMap.Data {
if slices.Contains(hotNews.Spec.FeedGroups, feedGroupName) {
return true
}
}
Expand Down

0 comments on commit 4452a20

Please sign in to comment.