Refactors boolean returns
Return the boolean evaluation itself rather than a boolean after evaluation Change-Id: I6329d474c921e29eb3a690270de12d51cb863710
This commit is contained in:
parent
fda06f6806
commit
ab867fb7d0
@ -497,12 +497,8 @@ class Connection(object):
|
||||
# future with this?
|
||||
ssl_params['cert_reqs'] = ssl.CERT_REQUIRED
|
||||
|
||||
if not ssl_params:
|
||||
# Just have the default behavior
|
||||
return True
|
||||
else:
|
||||
# Return the extended behavior
|
||||
return ssl_params
|
||||
# Return the extended behavior or just have the default behavior
|
||||
return ssl_params or True
|
||||
|
||||
def _connect(self, params):
|
||||
"""Connect to rabbit. Re-establish any queues that may have
|
||||
|
Loading…
x
Reference in New Issue
Block a user