From 36ea03eb36b4d4248e2bec0bb97328f2a1fd794e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 22 Oct 2014 13:11:37 -0400 Subject: [PATCH] Fixed #23701 -- Removed an unneeded check in collectstatic. Thanks prathik for the report. --- .../contrib/staticfiles/management/commands/collectstatic.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py index f004727c832..10c8c8f8d94 100644 --- a/django/contrib/staticfiles/management/commands/collectstatic.py +++ b/django/contrib/staticfiles/management/commands/collectstatic.py @@ -314,5 +314,4 @@ class Command(BaseCommand): self.log("Copying '%s'" % source_path, level=1) with source_storage.open(path) as source_file: self.storage.save(prefixed_path, source_file) - if prefixed_path not in self.copied_files: - self.copied_files.append(prefixed_path) + self.copied_files.append(prefixed_path)