mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 01:53:31 +01:00
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:
parent
f016ea7e05
commit
ceabc72feb
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue