chore: pin GH commits and switch to golangci-lint (#4444)

* chore: pin GH commits

* switch to golangci-lint-action

* fix lint issues
This commit is contained in:
David Zhao
2026-04-11 13:04:22 -07:00
committed by GitHub
parent 2974ba879f
commit 4b3856125c
37 changed files with 127 additions and 108 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ func (r *rtxInfoReader) Read(b []byte, a interceptor.Attributes) (int, intercept
go r.factory.SetStreamInfo(header.SSRC, mid, rid, rsid)
} else {
// ignore padding only packet for probe count
if !(header.Padding && n-header.MarshalSize()-int(b[n-1]) == 0) {
if !header.Padding || n-header.MarshalSize()-int(b[n-1]) != 0 {
r.tryTimes--
}
}
+1 -1
View File
@@ -121,7 +121,7 @@ func (u *unhandleSimulcastRTPReader) Read(b []byte, a interceptor.Attributes) (i
return n, a, nil
} else {
// ignore padding only packet for probe count
if !(header.Padding && n-header.MarshalSize()-int(b[n-1]) == 0) {
if !header.Padding || n-header.MarshalSize()-int(b[n-1]) != 0 {
u.tryTimes--
}
}