Merge pull request #17131 from pmorie/store-assert
Auto commit by PR queue bot
This commit is contained in:
		
							
								
								
									
										2
									
								
								pkg/client/cache/store.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								pkg/client/cache/store.go
									
									
									
									
										vendored
									
									
								
							@@ -116,6 +116,8 @@ type cache struct {
 | 
				
			|||||||
	keyFunc KeyFunc
 | 
						keyFunc KeyFunc
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var _ Store = &cache{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Add inserts an item into the cache.
 | 
					// Add inserts an item into the cache.
 | 
				
			||||||
func (c *cache) Add(obj interface{}) error {
 | 
					func (c *cache) Add(obj interface{}) error {
 | 
				
			||||||
	key, err := c.keyFunc(obj)
 | 
						key, err := c.keyFunc(obj)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user