From ceabc72feb22860b6cac1e77e27efc155282ad94 Mon Sep 17 00:00:00 2001 From: Zsin Skri Date: Sun, 1 Jul 2018 09:15:05 +0200 Subject: [PATCH] lastgenre: remove unnecessary check In _resolv_genres wo do not have to explicitly check if self.c14n_branches is not empty. The tree will have been loaded when self.canonicalize is truthy. Also if self.c14n_branches would be empty the canonicalization is a no-op anyway... --- 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 6c195f6c4..2f660206e 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -195,7 +195,7 @@ class LastGenrePlugin(plugins.BeetsPlugin): return None count = self.config['count'].get(int) - if self.c14n_branches and self.canonicalize: + if self.canonicalize: # Extend the list to consider tags parents in the c14n tree tags_all = [] for tag in tags: