From cdec8f4e929ec838e445147ca76d756f4a987d28 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Sun, 4 May 2014 16:09:53 +0200 Subject: [PATCH] No need to calculate length of the list to test if empty. --- picard/coverart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/coverart.py b/picard/coverart.py index d0dcfa307..44db21da4 100644 --- a/picard/coverart.py +++ b/picard/coverart.py @@ -286,7 +286,7 @@ class CoverArt: def _walk(self): """Downloads each item in ``try_list``. If there are none left, loading of ``album`` will be finalized.""" - if len(self.try_list) == 0: + if not self.try_list: self.album._finalize_loading(None) elif self.album.id not in self.album.tagger.albums: return