summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-10-22 13:11:37 -0400
committerTim Graham <timograham@gmail.com>2014-10-22 13:11:37 -0400
commit36ea03eb36b4d4248e2bec0bb97328f2a1fd794e (patch)
tree50e46601715ea0010f4383f88d9ff387180a8510
parent9dc782b6313910dc8e650f3a3013320ffb1209db (diff)
Fixed #23701 -- Removed an unneeded check in collectstatic.
Thanks prathik for the report.
-rw-r--r--django/contrib/staticfiles/management/commands/collectstatic.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
index f004727c83..10c8c8f8d9 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)