Skip to content

Commit

Permalink
Chore: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed May 17, 2022
1 parent b384449 commit 8603ac4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion common/pool/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func (alloc *Allocator) Put(buf []byte) error {
return errors.New("allocator Put() incorrect buffer size")
}

//lint:ignore SA6002 ignore temporarily
//nolint
//lint:ignore SA6002 ignore temporarily
alloc.buffers[bits].Put(buf)
return nil
}
Expand Down
1 change: 0 additions & 1 deletion common/singledo/singledo.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type Result struct {
}

// Do single.Do likes sync.singleFlight
//lint:ignore ST1008 it likes sync.singleFlight
func (s *Single) Do(fn func() (any, error)) (v any, err error, shared bool) {
s.mux.Lock()
now := time.Now()
Expand Down

0 comments on commit 8603ac4

Please sign in to comment.