From b9e6de45e67727bb270cb98f68c75565db282f36 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+dreamacro@users.noreply.github.com> Date: Tue, 17 May 2022 19:58:33 +0800 Subject: [PATCH] chore: make linter happy --- common/pool/alloc.go | 2 +- common/singledo/singledo.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/pool/alloc.go b/common/pool/alloc.go index 4c063bb8..96fd059e 100644 --- a/common/pool/alloc.go +++ b/common/pool/alloc.go @@ -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 } diff --git a/common/singledo/singledo.go b/common/singledo/singledo.go index c741fc82..4e843ca2 100644 --- a/common/singledo/singledo.go +++ b/common/singledo/singledo.go @@ -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()