mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-10 08:40:43 +01:00
Transcoder: Remove useless empty check
This commit is contained in:
parent
2ce5d6f727
commit
4cd030215d
@ -284,7 +284,7 @@ Song::FileType Transcoder::PickBestFormat(const QList<Song::FileType> &supported
|
||||
best_formats << Song::FileType::WavPack;
|
||||
|
||||
for (Song::FileType type : best_formats) {
|
||||
if (supported.isEmpty() || supported.contains(type)) return type;
|
||||
if (supported.contains(type)) return type;
|
||||
}
|
||||
|
||||
return supported[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user