Skip to content

Commit f4ca273

Browse files
committed
cli/__init__.py: always set the default response option to be the one that was last used
1 parent 4b1c83d commit f4ca273

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pybricksdev/cli/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,7 @@ async def reconnect_hub():
307307
)
308308
)
309309

310-
if (
311-
response_options.index(response)
312-
!= ResponseOptions.CHANGE_TARGET_FILE
313-
):
314-
default_response_option = response_options.index(response)
310+
default_response_option = response_options.index(response)
315311

316312
match response_options.index(response):
317313

0 commit comments

Comments
 (0)