Remove useless else

This commit is contained in:
Jonas Kvinge
2024-06-12 17:38:58 +02:00
parent 93df859aa4
commit b233600b8c
32 changed files with 178 additions and 211 deletions

View File

@@ -790,12 +790,11 @@ QString InternetSearchView::PixmapCacheKey(const InternetSearchView::Result &res
if (result.metadata_.art_automatic_is_valid()) {
return Song::TextForSource(service_->source()) + QLatin1Char('/') + result.metadata_.art_automatic().toString();
}
else if (!result.metadata_.effective_albumartist().isEmpty() && !result.metadata_.album().isEmpty()) {
if (!result.metadata_.effective_albumartist().isEmpty() && !result.metadata_.album().isEmpty()) {
return Song::TextForSource(service_->source()) + QLatin1Char('/') + result.metadata_.effective_albumartist() + QLatin1Char('/') + result.metadata_.album();
}
else {
return Song::TextForSource(service_->source()) + QLatin1Char('/') + result.metadata_.url().toString();
}
return Song::TextForSource(service_->source()) + QLatin1Char('/') + result.metadata_.url().toString();
}