Commit a0b88187 by andreas.pelme

Removed a redudant condition in CompressedCSSNode, thanks Alexander Pugachev.


git-svn-id: https://django-compress.googlecode.com/svn/trunk@69 98d35234-f74b-0410-9e22-51d878bdf110
parent 9210a5b3
......@@ -38,14 +38,12 @@ class CompressedCSSNode(template.Node):
if settings.COMPRESS:
if settings.COMPRESS:
version = None
version = None
if settings.COMPRESS_AUTO:
u, version = needs_update(css['output_filename'], css['source_filenames'])
if u:
filter_css(css)
if settings.COMPRESS_AUTO:
u, version = needs_update(css['output_filename'], css['source_filenames'])
if u:
filter_css(css)
return render_css(css, css['output_filename'], version)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment