Skip to content

Optimize Path.cwd() call in license-check.py #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deus-labs
Copy link

Extract repeated Path.cwd() calls into a single constant CWD to improve performance and readability. This change reduces the number of system calls by reusing the computed current working directory path, following the DRY principle (Don't Repeat Yourself).

@deus-labs deus-labs requested a review from a team as a code owner July 11, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant