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 524ce55
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, new_ *map[reflect.Type][]measureFuncs) bool {

Check failure on line 507 in measure.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: don't use underscores in Go names; method parameter new_ should be new (revive)
return atomic.CompareAndSwapPointer(&c.cache,
unsafe.Pointer(old),
unsafe.Pointer(new),
unsafe.Pointer(new_),
)
}

0 comments on commit 524ce55

Please sign in to comment.