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;
|
best_formats << Song::FileType::WavPack;
|
||||||
|
|
||||||
for (Song::FileType type : best_formats) {
|
for (Song::FileType type : best_formats) {
|
||||||
if (supported.isEmpty() || supported.contains(type)) return type;
|
if (supported.contains(type)) return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
return supported[0];
|
return supported[0];
|
||||||
|
|
Loading…
Reference in New Issue