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

Added Envirnoment variabel for the --cache flag (STAYRTR_CACHE) #130

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tim427
Copy link

@tim427 tim427 commented Sep 26, 2024

I've made an attempt to add STAYRTR_CACHE as environment variable.

@@ -756,6 +759,11 @@
s.fetchConfig.EnableEtags = *Etag
s.fetchConfig.EnableLastModified = *LastModified

cache := *CacheBin
if cache == DEFAULT_CACHE {
cache = os.Getenv(ENV_CACHE)

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of cache is never used.
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