Skip to content

Commit e8a081e

Browse files
committed
lint
Signed-off-by: Maroon Ayoub <maroon.ayoub@ibm.com>
1 parent 5d25278 commit e8a081e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/plugins/scorer/precise_prefix_cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func New(ctx context.Context, config PrecisePrefixCachePluginConfig) (*PrecisePr
118118
var subscribersCache *ttlcache.Cache[string, struct{}]
119119

120120
// initialize the subscribers cache only if pod discovery is enabled
121-
if config.KVEventsConfig.DiscoverPods == true {
121+
if config.KVEventsConfig.DiscoverPods {
122122
// initialize the subscribers TTL cache
123123
subscriptionTimeout := 10 * time.Minute
124124
subscribersCache = ttlcache.New[string, struct{}](
@@ -186,7 +186,7 @@ func (s *PrecisePrefixCacheScorer) Score(ctx context.Context, cycleState *types.
186186
logger := log.FromContext(ctx).WithName(s.typedName.String())
187187
debugLogger := logger.V(logutil.DEBUG)
188188

189-
if s.kvEventsConfig.DiscoverPods == true {
189+
if s.kvEventsConfig.DiscoverPods {
190190
// update subscribers here temporarily
191191
for _, pod := range pods {
192192
podObj := pod.GetPod()

0 commit comments

Comments
 (0)