Skip to content

Commit 8a8c1f6

Browse files
committed
fix: correct variable names in subprocess calls for clarity
1 parent 0910b3d commit 8a8c1f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,20 @@ def run_commit_check() -> int:
105105
if other_args:
106106
command = ["commit-check"] + other_args
107107
print(" ".join(command))
108-
result = subprocess.run(
108+
other_result = subprocess.run(
109109
command, stdout=result_file, stderr=subprocess.PIPE, check=False
110110
)
111-
total_rc += result.returncode
111+
total_rc += other_result.returncode
112112

113113
return total_rc
114114

115115
# Non-PR context or message disabled: run all checks at once
116116
command = ["commit-check"] + args
117117
print(" ".join(command))
118-
result = subprocess.run(
118+
default_result = subprocess.run(
119119
command, stdout=result_file, stderr=subprocess.PIPE, check=False
120120
)
121-
return result.returncode
121+
return default_result.returncode
122122

123123

124124
def read_result_file() -> str | None:

0 commit comments

Comments
 (0)