File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,24 +104,24 @@ def run_commit_check() -> int:
104104 # Non-PR context: let commit-check determine what to check from git.
105105 command = ["commit-check" , "--message" ]
106106 print (" " .join (command ))
107- result = subprocess .run (
107+ ret_code + = subprocess .run (
108108 command ,
109109 stdout = result_file ,
110110 stderr = subprocess .STDOUT ,
111+ text = True ,
111112 check = False ,
112- )
113- ret_code += result .returncode
113+ ).returncode
114114
115115 if other_args :
116116 command = ["commit-check" ] + other_args
117117 print (" " .join (command ))
118- result = subprocess .run (
118+ ret_code + = subprocess .run (
119119 command ,
120120 stdout = result_file ,
121121 stderr = subprocess .STDOUT ,
122+ text = True ,
122123 check = False ,
123- )
124- ret_code += result .returncode
124+ ).returncode
125125
126126 return ret_code
127127
You can’t perform that action at this time.
0 commit comments