From 9922f8fb995774632593785b7d28132a687fd93c Mon Sep 17 00:00:00 2001 From: dunkla Date: Sun, 28 Dec 2025 15:02:40 +0100 Subject: [PATCH] simplify return logic in beetsplug/lastgenre/__init__.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Šarūnas Nejus --- beetsplug/lastgenre/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 1011eabd6..5333871cc 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -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]