fixing per review comments

This commit is contained in:
Peter 2019-06-09 20:01:55 +02:00
parent 2c49c12166
commit f0c91b8f45
2 changed files with 1 additions and 2 deletions

View file

@ -306,7 +306,7 @@ class DiscogsPlugin(BeetsPlugin):
style = result.data.get('styles')
if style is None:
self._log.debug('Style not Found')
elif len(style) == 0:
elif not style:
return style
else:
style = self.config['separator'].as_str().join(sorted(style))

View file

@ -84,7 +84,6 @@ class DGAlbumInfoTest(_common.TestCase):
tracklist where tracks have the specified `positions`."""
tracks = [self._make_track('TITLE%s' % i, position) for
(i, position) in enumerate(positions, start=1)]
release = self._make_release(tracks)
return self._make_release(tracks)
def test_parse_media_for_tracks(self):