1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

refactor: decrease the number of iterations

This commit is contained in:
Dmitry Lyzo 2023-01-07 21:04:40 +03:00
parent a7bd7e30c6
commit fe65e0c3b3
2 changed files with 4 additions and 4 deletions

View file

@ -617,11 +617,11 @@ function tryRemoveElement(elem) {
const profiles = deviceProfile.DirectPlayProfiles || [];
return profiles.filter(function (p) {
return profiles.some(function (p) {
return p.Type === 'Video'
&& includesAny((p.Container || '').toLowerCase(), container)
&& includesAny((p.AudioCodec || '').toLowerCase(), codec);
}).length > 0;
});
}
/**