Skip to content

Commit a62027a

Browse files
authored
1 parent 86af570 commit a62027a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adbe/adb_helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,8 @@ def execute_file_related_adb_shell_command(
148148
adb_cmds_prefix.append("shell")
149149

150150
stdout = None
151-
attempt_count = 1
152-
for adb_cmd_prefix in adb_cmds_prefix:
153-
print_verbose(f'Attempt {attempt_count}/{len(adb_cmds_prefix)}: "{adb_cmd_prefix}"')
154-
attempt_count += 1
151+
for i, adb_cmd_prefix in enumerate(adb_cmds_prefix):
152+
print_verbose(f'Attempt {i}/{len(adb_cmds_prefix)}: "{adb_cmd_prefix}"')
155153
adb_cmd = f"{adb_cmd_prefix} {adb_shell_cmd}"
156154
result = execute_adb_command2(
157155
adb_cmd, piped_into_cmd, ignore_stderr, device_serial=device_serial)

0 commit comments

Comments
 (0)