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

Remove unnecessary returns

This commit is contained in:
Bill Thornton 2020-12-14 16:33:49 -05:00
parent 310e8b713f
commit dc64556d0c

View file

@ -287,11 +287,11 @@ function getAudioMaxValues(deviceProfile) {
if (codecProfile.Type === 'Audio') {
(codecProfile.Conditions || []).forEach(condition => {
if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitDepth') {
return maxAudioBitDepth = condition.Value;
maxAudioBitDepth = condition.Value;
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioSampleRate') {
return maxAudioSampleRate = condition.Value;
maxAudioSampleRate = condition.Value;
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitrate') {
return maxAudioBitrate = condition.Value;
maxAudioBitrate = condition.Value;
}
});
}