fix: устранены блокеры линтера в obf/multi

errcheck nolint на bufPool.Get в rtpopus3/listen.go; multi.MultiProvider
переименован в multi.Provider (revive stutter), дедуп vk.New в buildProvider.
This commit is contained in:
samosvalishe committed 2026-06-19 15:11:17 +03:00
1 parent 9564f3475f
commit bafdcdd027
3 files changed
+38 -96

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ type packetConn struct {
}
func (c *packetConn) ReadFrom(p []byte) (int, net.Addr, error) {
bp := bufPool.Get().(*[]byte)
bp := bufPool.Get().(*[]byte) //nolint:errcheck // pool New always returns *[]byte
buf := *bp
need := len(p) + overhead
if cap(buf) < need {
@@ -86,7 +86,7 @@ func (c *packetConn) ReadFrom(p []byte) (int, net.Addr, error) {
func (c *packetConn) WriteTo(p []byte, addr net.Addr) (int, error) {
wireLen := overhead + len(p)
bp := bufPool.Get().(*[]byte)
bp := bufPool.Get().(*[]byte) //nolint:errcheck // pool New always returns *[]byte
out := *bp
if cap(out) < wireLen {
out = make([]byte, wireLen)