Skip to content

Commit aaaccf6

Browse files
authored
simplify if
1 parent f1370e7 commit aaaccf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/penv_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def install_esptool(env, platform, python_exe, uv_executable):
288288
timeout=5
289289
)
290290

291-
if result.returncode == 0 and result.stdout.strip() == "MATCH":
291+
if result.stdout.strip() == "MATCH":
292292
return
293293

294294
except (subprocess.CalledProcessError, subprocess.TimeoutExpired, FileNotFoundError):

0 commit comments

Comments
 (0)