Skip to content

Commit

Permalink
more goreleaser v2 changes (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangermike authored Jun 18, 2024
1 parent af71fc4 commit beb671b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ builds:
- skip: true

release:
github:
name: TriggerMail/lazylru
prerelease: auto

changelog:
Expand Down
6 changes: 3 additions & 3 deletions lazylru_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (bc benchconfig) InterfaceStructPtr(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
ix := i % bc.keyCount
if rand.Float64() < bc.readRate {
if rand.Float64() < bc.readRate { //nolint:gosec
// if true {
if iv, ok := lru.Get(keys[ix]); !ok {
continue
Expand Down Expand Up @@ -143,7 +143,7 @@ func (bc benchconfig) GenericStructPtr(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
ix := i % bc.keyCount
if rand.Float64() < bc.readRate {
if rand.Float64() < bc.readRate { //nolint:gosec
// if true {
if v, ok := lru.Get(keys[ix]); !ok {
continue
Expand All @@ -166,7 +166,7 @@ func (bc benchconfig) InterfaceValue(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
ix := i % bc.keyCount
if rand.Float64() < bc.readRate {
if rand.Float64() < bc.readRate { //nolint:gosec
// if true {
if iv, ok := lru.Get(keys[ix]); !ok {
continue
Expand Down

0 comments on commit beb671b

Please sign in to comment.