Skip to content

Commit d763a63

Browse files
authored
chore: remove unused string-constant environment variables (#227)
MESSAGE, BRANCH, AUTHOR_NAME, AUTHOR_EMAIL, DRY_RUN, JOB_SUMMARY, PR_COMMENTS, and PR_TITLE were defined via os.getenv() but never read anywhere in the codebase. The actual logic uses env_flag() which reads the environment variables again from scratch via string literals. These 8 lines were pure dead code.
1 parent d6ad122 commit d763a63

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎main.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
COMMIT_MESSAGE_DELIMITER = "\x00"
1414
COMMIT_SECTION_SEPARATOR = "\n---\n"
1515

16-
# Environment variables
17-
MESSAGE = os.getenv("MESSAGE", "false")
18-
BRANCH = os.getenv("BRANCH", "false")
19-
AUTHOR_NAME = os.getenv("AUTHOR_NAME", "false")
20-
AUTHOR_EMAIL = os.getenv("AUTHOR_EMAIL", "false")
21-
DRY_RUN = os.getenv("DRY_RUN", "false")
22-
JOB_SUMMARY = os.getenv("JOB_SUMMARY", "false")
23-
PR_COMMENTS = os.getenv("PR_COMMENTS", "false")
24-
PR_TITLE = os.getenv("PR_TITLE", "false")
2516
GITHUB_STEP_SUMMARY = os.environ["GITHUB_STEP_SUMMARY"]
2617

2718

0 commit comments

Comments
 (0)