remove unnecessary capacity in make()

This commit is contained in:
Matt Jaffee 2018-05-15 10:46:41 -05:00
parent 0e38eae6e3
commit 68dec9c60a
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -505,7 +505,7 @@ func NewNopCache() *NopCache {
func (c *NopCache) Add(id uint64, n uint64) {}
func (c *NopCache) BulkAdd(id uint64, n uint64) {}
func (c *NopCache) Get(id uint64) uint64 { return 0 }
func (c *NopCache) IDs() []uint64 { return make([]uint64, 0, 0) }
func (c *NopCache) IDs() []uint64 { return make([]uint64, 0) }
func (c *NopCache) Invalidate() {}
func (c *NopCache) Len() int { return 0 }