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
1 changed files with 1 additions and 2 deletions

View File

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