function always returns None

Removed if respone:

Change-Id: Ice35d1517747c40594e9c54f658f13669719c713
Closes-Bug: #1680702
This commit is contained in:
Kiran_totad 2017-07-11 15:42:56 +05:30
parent fe7ca77a47
commit 5a351d0a02

View File

@ -422,8 +422,6 @@ class Middleware(Application):
@webob.dec.wsgify(RequestClass=Request)
def __call__(self, req):
response = self.process_request(req)
if response:
return response
response = req.get_response(self.application)
return self.process_response(response)