We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb775f commit d7446c9Copy full SHA for d7446c9
cpp_linter_hooks/clang_format.py
@@ -21,7 +21,7 @@ def run_clang_format(args) -> int:
21
sp = subprocess.run(command, stdout=subprocess.PIPE)
22
retval = -1 # Not a fail just identify it's a dry-run.
23
output = sp.stdout.decode("utf-8")
24
- retval = subprocess.run(command, stdout=subprocess.PIPE)
+ retval = subprocess.run(command, stdout=subprocess.PIPE).returncode
25
return retval, output
26
except FileNotFoundError as e:
27
retval = 1
0 commit comments