Apply go modernize (#650)

This commit is contained in:
philipch07
2025-09-14 21:55:37 -04:00
committed by GitHub
parent 6047a32ea0
commit c0721738c4
15 changed files with 50 additions and 59 deletions

View File

@@ -2,6 +2,7 @@ package mediadevices
import (
"io"
"slices"
"testing"
"github.com/pion/mediadevices/pkg/codec"
@@ -93,13 +94,7 @@ func TestMediaStreamFilters(t *testing.T) {
}
for _, a := range actual {
found := false
for _, e := range expected {
if e == a {
found = true
break
}
}
found := slices.Contains(expected, a)
if !found {
t.Fatalf("%s: Expected to find %p in the query results", t.Name(), a)