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...
This commit is contained in:
Zsin Skri 2018-07-01 09:15:05 +02:00
parent f016ea7e05
commit ceabc72feb

View file

@ -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: