Skip to content

Commit d7446c9

Browse files
committed
fix retval = returncode
1 parent acb775f commit d7446c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_linter_hooks/clang_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def run_clang_format(args) -> int:
2121
sp = subprocess.run(command, stdout=subprocess.PIPE)
2222
retval = -1 # Not a fail just identify it's a dry-run.
2323
output = sp.stdout.decode("utf-8")
24-
retval = subprocess.run(command, stdout=subprocess.PIPE)
24+
retval = subprocess.run(command, stdout=subprocess.PIPE).returncode
2525
return retval, output
2626
except FileNotFoundError as e:
2727
retval = 1

0 commit comments

Comments
 (0)