update golangci-lint (#1870)

This commit is contained in:
Alessandro Ros
2023-05-28 17:18:16 +02:00
committed by GitHub
parent 22f05e97e8
commit 89ebc83993
15 changed files with 47 additions and 38 deletions

View File

@@ -34,7 +34,7 @@ func newGeneric(
udpMaxPayloadSize int,
forma formats.Format,
generateRTPPackets bool,
log logger.Writer,
_ logger.Writer,
) (*formatProcessorGeneric, error) {
if generateRTPPackets {
return nil, fmt.Errorf("we don't know how to generate RTP packets of format %+v", forma)
@@ -45,7 +45,7 @@ func newGeneric(
}, nil
}
func (t *formatProcessorGeneric) Process(unit Unit, hasNonRTSPReaders bool) error {
func (t *formatProcessorGeneric) Process(unit Unit, _ bool) error {
tunit := unit.(*UnitGeneric)
pkt := tunit.RTPPackets[0]