unix: simplify return statements.

pull/178/head
David Wilson 7 years ago
parent d68833757b
commit 95d50adb14

@ -50,9 +50,8 @@ def is_path_dead(path):
try:
s.connect(path)
except socket.error, e:
if e[0] in (errno.ECONNREFUSED, errno.ENOENT):
return True
return False
return e[0] in (errno.ECONNREFUSED, errno.ENOENT)
return False
def make_socket_path():

Loading…
Cancel
Save