Skip to content

Commit

Permalink
cleanup: if triggerValue has a value, fast break
Browse files Browse the repository at this point in the history
Signed-off-by: xigang <wangxigang2014@gmail.com>
  • Loading branch information
xigang committed Mar 4, 2024
1 parent 6d2ee13 commit d72448a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ func (c *Cacher) Watch(ctx context.Context, key string, opts storage.ListOptions
if field == c.indexedTrigger.indexName {
if value, ok := pred.Field.RequiresExactMatch(field); ok {
triggerValue, triggerSupported = value, true
break
}
}
}
Expand Down

0 comments on commit d72448a

Please sign in to comment.