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

Nested key value not returning if environment is not specified #114

Open
bmarotta opened this issue Jan 12, 2020 · 0 comments
Open

Nested key value not returning if environment is not specified #114

bmarotta opened this issue Jan 12, 2020 · 0 comments
Assignees
Labels

Comments

@bmarotta
Copy link

If using environments, a nested key value won't return if not defined for the specified environment.

Example

{
"myData": { "myValue": "value" },
"development": { "myData": { "myValue": "otherValue" } }
}

The above example will return correctly "myData.myValue" if the environment is "development", but will return null if the environment is production.

The problem is a missing else for the if statement on line 272
if (this.environmentExists())

@Vheissu Vheissu self-assigned this Jul 21, 2020
@Vheissu Vheissu added the bug label Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants