Commit 95d50adb authored by David Wilson's avatar David Wilson

unix: simplify return statements.

parent d6883375
......@@ -50,8 +50,7 @@ def is_path_dead(path):
try:
s.connect(path)
except socket.error, e:
if e[0] in (errno.ECONNREFUSED, errno.ENOENT):
return True
return e[0] in (errno.ECONNREFUSED, errno.ENOENT)
return False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment