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:
parent
310e8b713f
commit
dc64556d0c
1 changed files with 3 additions and 3 deletions
|
@ -287,11 +287,11 @@ function getAudioMaxValues(deviceProfile) {
|
||||||
if (codecProfile.Type === 'Audio') {
|
if (codecProfile.Type === 'Audio') {
|
||||||
(codecProfile.Conditions || []).forEach(condition => {
|
(codecProfile.Conditions || []).forEach(condition => {
|
||||||
if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitDepth') {
|
if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitDepth') {
|
||||||
return maxAudioBitDepth = condition.Value;
|
maxAudioBitDepth = condition.Value;
|
||||||
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioSampleRate') {
|
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioSampleRate') {
|
||||||
return maxAudioSampleRate = condition.Value;
|
maxAudioSampleRate = condition.Value;
|
||||||
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitrate') {
|
} else if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioBitrate') {
|
||||||
return maxAudioBitrate = condition.Value;
|
maxAudioBitrate = condition.Value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue