Skip to content

Commit

Permalink
fix linter again
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment committed Dec 12, 2024
1 parent 895074f commit ad56b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions measure.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ func (c *measureCache) load() *map[reflect.Type][]measureFuncs {
return (*map[reflect.Type][]measureFuncs)(atomic.LoadPointer(&c.cache))
}

func (c *measureCache) compareAndSwap(old, new *map[reflect.Type][]measureFuncs) bool {
func (c *measureCache) compareAndSwap(old, newPtr *map[reflect.Type][]measureFuncs) bool {
return atomic.CompareAndSwapPointer(&c.cache,
unsafe.Pointer(old),
unsafe.Pointer(new),
unsafe.Pointer(newPtr),
)
}

0 comments on commit ad56b2a

Please sign in to comment.