Merge "Remove unneeded condition"

This commit is contained in:
Jenkins 2014-12-18 00:58:05 +00:00 committed by Gerrit Code Review
commit 76a372a15f

View File

@ -115,8 +115,6 @@ class CNAMELookupMiddleware(object):
port = ''
if ':' in given_domain:
given_domain, port = given_domain.rsplit(':', 1)
if given_domain == self.storage_domain[1:]: # strip initial '.'
return self.app(env, start_response)
if is_ip(given_domain):
return self.app(env, start_response)
a_domain = given_domain