don't need return value as variable

This commit is contained in:
Alan Hamlett 2015-09-08 15:49:39 -07:00
parent 9884eea311
commit 2dddbd8094

View file

@ -426,8 +426,7 @@ def execute(argv=None):
kwargs['stats'] = stats kwargs['stats'] = stats
kwargs['hostname'] = args.hostname or socket.gethostname() kwargs['hostname'] = args.hostname or socket.gethostname()
rv = send_heartbeat(**kwargs) if send_heartbeat(**kwargs):
if rv:
queue = Queue() queue = Queue()
while True: while True:
heartbeat = queue.pop() heartbeat = queue.pop()