Commit 67d73a2a authored by Max Kellermann's avatar Max Kellermann

song/TagSongFilter: improve lambda indent

parent fde9a470
...@@ -55,21 +55,20 @@ TagSongFilter::Match(const Tag &tag) const noexcept ...@@ -55,21 +55,20 @@ TagSongFilter::Match(const Tag &tag) const noexcept
if (type < TAG_NUM_OF_ITEM_TYPES && !visited_types[type]) { if (type < TAG_NUM_OF_ITEM_TYPES && !visited_types[type]) {
bool result = false; bool result = false;
if (ApplyTagFallback(type, if (ApplyTagFallback(type, [&](TagType tag2) {
[&](TagType tag2) { if (!visited_types[tag2])
if (!visited_types[tag2]) return false;
return false;
for (const auto &item : tag) { for (const auto &item : tag) {
if (item.type == tag2 && if (item.type == tag2 &&
filter.Match(item.value)) { filter.Match(item.value)) {
result = true; result = true;
break; break;
} }
} }
return true; return true;
})) }))
return result; return result;
/* If the search critieron was not visited during the /* If the search critieron was not visited during the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment