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

Fix incorrectly bypassing default value on get() caused by undefined #43

Open
wants to merge 2 commits into
base: 6.x
Choose a base branch
from

Conversation

jcppman
Copy link

@jcppman jcppman commented Jan 29, 2025

πŸ”— Linked issue

#42

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Resolves an edge case #42.

When an env value was undefined and set to a value, then manually set to undefined again, env.get('VAR', 'DEFAULT')
will not return the correct default value.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@jcppman jcppman force-pushed the reprod-env-default branch from 27d58a9 to de602d0 Compare January 29, 2025 03:47
resolves adonisjs#42:

When an env value was undefined and set to a value, then manually set to
undefined again, env.get('VAR', 'DEFAULT') would not return the correct default value.
@jcppman jcppman force-pushed the reprod-env-default branch from de602d0 to 47f3402 Compare January 29, 2025 03:48
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.

2 participants