From a452065779c7fef9cde7dfecba82ab6985ee19be Mon Sep 17 00:00:00 2001 From: Konstantine Tsafatinos Date: Mon, 26 Jun 2023 18:10:55 -0400 Subject: [PATCH] remove unneeded if block --- skynet/cli.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/skynet/cli.py b/skynet/cli.py index 08a5032..d637ea2 100644 --- a/skynet/cli.py +++ b/skynet/cli.py @@ -135,19 +135,12 @@ def enqueue( }) binary = '' - if not kwargs['jobs']: + for i in kwargs['jobs']: ec, out = cleos.push_action( 'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}' ) print(collect_stdout(out)) assert ec == 0 - else: - for i in kwargs['jobs']: - ec, out = cleos.push_action( - 'telos.gpu', 'enqueue', [account, req, binary, reward], f'{account}@{permission}' - ) - print(collect_stdout(out)) - assert ec == 0 @skynet.command() @click.option('--loglevel', '-l', default='INFO', help='Logging level')