simplify return logic in beetsplug/lastgenre/__init__.py

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
dunkla 2025-12-28 15:02:40 +01:00 committed by Šarūnas Nejus
parent 4e30c181c6
commit 9922f8fb99
No known key found for this signature in database

View file

@ -345,7 +345,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
genres_list = obj.get("genres")
# Filter out empty strings
return [g for g in genres_list if g] if genres_list else []
return genres_list
def _combine_resolve_and_log(
self, old: list[str], new: list[str]