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 50672eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/setup-go@v5
with:
Expand Down
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 50672eb

Please sign in to comment.