mirror of
https://github.com/beetbox/beets.git
synced 2026-02-28 10:15:23 +01:00
simplify return logic in beetsplug/lastgenre/__init__.py
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
parent
4e30c181c6
commit
9922f8fb99
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue