Skip to content

Commit ae118fe

Browse files
committed
Flatten if statement
1 parent 1ddea9b commit ae118fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/bloqade/pyqrack/target.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def run_shots():
106106

107107
if shots == 1:
108108
return interpreter.run(mt, args, kwargs)
109+
elif return_iterator:
110+
return run_shots()
109111
else:
110-
if return_iterator:
111-
return run_shots()
112-
else:
113-
return list(run_shots())
112+
return list(run_shots())

0 commit comments

Comments
 (0)