Skip to content

Commit

Permalink
Remove unused return codes (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 11, 2024
1 parent 7428e60 commit 1b8f851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wpiformat/wpiformat/cmakeformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def should_process_file(config_file, name):
def run_batch(config_file, names):
try:
args = [sys.executable, "-m", "gersemi", "-i"]
returncode = subprocess.run(args + names).returncode
subprocess.run(args + names)
except FileNotFoundError:
print("Error: gersemi not found in PATH. Is it installed?", file=sys.stderr)
return False
Expand Down
2 changes: 1 addition & 1 deletion wpiformat/wpiformat/pyformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def should_process_file(config_file, name):
def run_batch(config_file, names):
try:
args = [sys.executable, "-m", "black", "-q"]
returncode = subprocess.run(args + names).returncode
subprocess.run(args + names)
except FileNotFoundError:
print("Error: black not found in PATH. Is it installed?", file=sys.stderr)
return False
Expand Down

0 comments on commit 1b8f851

Please sign in to comment.