Skip to content

Commit 1b8f851

Browse files
authored
Remove unused return codes (#269)
1 parent 7428e60 commit 1b8f851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wpiformat/wpiformat/cmakeformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def should_process_file(config_file, name):
1515
def run_batch(config_file, names):
1616
try:
1717
args = [sys.executable, "-m", "gersemi", "-i"]
18-
returncode = subprocess.run(args + names).returncode
18+
subprocess.run(args + names)
1919
except FileNotFoundError:
2020
print("Error: gersemi not found in PATH. Is it installed?", file=sys.stderr)
2121
return False

wpiformat/wpiformat/pyformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def should_process_file(config_file, name):
1515
def run_batch(config_file, names):
1616
try:
1717
args = [sys.executable, "-m", "black", "-q"]
18-
returncode = subprocess.run(args + names).returncode
18+
subprocess.run(args + names)
1919
except FileNotFoundError:
2020
print("Error: black not found in PATH. Is it installed?", file=sys.stderr)
2121
return False

0 commit comments

Comments
 (0)