Transcoder: Remove useless empty check

This commit is contained in:
Jonas Kvinge 2023-07-21 07:16:08 +02:00
parent 2ce5d6f727
commit 4cd030215d
1 changed files with 1 additions and 1 deletions

View File

@ -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];