chore: make linter happy

This commit is contained in:
Dreamacro 2022-05-17 19:58:33 +08:00 committed by 世界
parent d3503ff940
commit b9e6de45e6
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 1 additions and 2 deletions

View File

@ -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
}

View File

@ -25,7 +25,6 @@ type Result[T any] struct {
}
// Do single.Do likes sync.singleFlight
//lint:ignore ST1008 it likes sync.singleFlight
func (s *Single[T]) Do(fn func() (T, error)) (v T, err error, shared bool) {
s.mux.Lock()
now := time.Now()