Fixed CodeCL warnings

This commit is contained in:
emeric
2023-10-11 11:29:37 +02:00
parent 23415a6c10
commit 961b52f124
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -121,8 +121,7 @@ namespace API::Subsonic
}
// Report the first GENRE for this track
ClusterType::pointer clusterType{ ClusterType::find(dbSession, "GENRE") };
if (clusterType)
if (ClusterType::pointer clusterType{ ClusterType::find(dbSession, "GENRE") })
{
auto clusters{ release->getClusterGroups({clusterType}, 1) };
if (!clusters.empty() && !clusters.front().empty())