mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Avoided assignment followed by immediate return.
Identified using the following command: $ pcre2grep --line-number --multiline --recursive \ "(?s)(\n +)(\w+) = [^\n]+\1return \2;?$" \ django docs extras js_tests scripts tests
This commit is contained in:
parent
d3cb91db87
commit
2bc47d7fe9
5 changed files with 6 additions and 12 deletions
|
@ -1027,8 +1027,7 @@ class ETagGZipMiddlewareTest(SimpleTestCase):
|
|||
"""
|
||||
|
||||
def get_response(req):
|
||||
response = HttpResponse(self.compressible_string)
|
||||
return response
|
||||
return HttpResponse(self.compressible_string)
|
||||
|
||||
def get_cond_response(req):
|
||||
return ConditionalGetMiddleware(get_response)(req)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue