Commit bb009daf authored by Max Kellermann's avatar Max Kellermann

playlist/registry: simplify ExtractMimeTypeMainPart()

parent dc432f3f
......@@ -207,11 +207,7 @@ gcc_pure
static StringView
ExtractMimeTypeMainPart(StringView s) noexcept
{
const auto separator = s.Find(';');
if (separator != nullptr)
s.SetEnd(separator);
return s;
return s.Split(';').first;
}
static std::unique_ptr<SongEnumerator>
......
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