Skip to content

Commit c3f3c20

Browse files
committed
cli/__init__.py: clean up an if statement
1 parent e95fc0e commit c3f3c20

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pybricksdev/cli/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,8 @@ def is_pybricks_usb(dev):
379379
hub._enable_line_handler = True
380380
await hub.download(script_path)
381381

382-
if not args.stay_connected:
383-
return
384-
385-
await stay_connected_menu(hub)
382+
if args.stay_connected:
383+
await stay_connected_menu(hub)
386384

387385
except SyntaxError as e:
388386
print("\nA syntax error occurred while parsing your program:")

0 commit comments

Comments
 (0)