mirror of
https://github.com/pion/webrtc.git
synced 2025-11-03 09:40:59 +08:00
Fix linter errors
golangci-lint upgrade to v1.56.2 added more checks Relates to pion/.goassets#201
This commit is contained in:
@@ -131,7 +131,7 @@ func main() {
|
||||
// Set a handler for when a new remote track starts, this handler will forward data to
|
||||
// our UDP listeners.
|
||||
// In your application this is where you would handle/process audio/video
|
||||
peerConnection.OnTrack(func(track *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) {
|
||||
peerConnection.OnTrack(func(track *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) { //nolint: revive
|
||||
// Retrieve udp connection
|
||||
c, ok := udpConns[track.Kind().String()]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user