From 1b8f85112028c137ca012fa0cc95a3bb072705fe Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Wed, 10 Jan 2024 18:35:41 -0800 Subject: [PATCH] Remove unused return codes (#269) --- wpiformat/wpiformat/cmakeformat.py | 2 +- wpiformat/wpiformat/pyformat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wpiformat/wpiformat/cmakeformat.py b/wpiformat/wpiformat/cmakeformat.py index b490c70..a8e2507 100644 --- a/wpiformat/wpiformat/cmakeformat.py +++ b/wpiformat/wpiformat/cmakeformat.py @@ -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 diff --git a/wpiformat/wpiformat/pyformat.py b/wpiformat/wpiformat/pyformat.py index 7294844..010bcde 100644 --- a/wpiformat/wpiformat/pyformat.py +++ b/wpiformat/wpiformat/pyformat.py @@ -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