Skip to content
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

feat: refactor environment variable checks for scarf analytics #3802

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

Conversation

realethanhsu
Copy link

This PR enhances the handling of the SCARF_NO_ANALYTICS and DO_NOT_TRACK environment variables by converting their values to lowercase before checking them. This improvement ensures that the checks are consistent, allowing developers to set SCARF_NO_ANALYTICS by os.environ["SCARF_NO_ANALYTICS"]=str(True) (In fact, the result of str(True) is "True", with a capital 'T') without causing unexpected behavior. This change promotes more robust code and mitigates case-sensitivity issues.

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