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: write path when it does not exist #1405

Merged
merged 1 commit into from
Apr 17, 2020
Merged

fix: write path when it does not exist #1405

merged 1 commit into from
Apr 17, 2020

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Apr 17, 2020

This fixes the situation where the user changed the configuration by themselves and removed the path variable or changed its type to something other than string.

The previous check would only update the path is it was an empty string. This way, any invalid path is overwritten.

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

@hacdias hacdias added kind/bug A bug in existing code (including security flaws) P1 High: Likely tackled by core team if no one steps up labels Apr 17, 2020
@hacdias hacdias requested a review from lidel April 17, 2020 06:22
@hacdias hacdias self-assigned this Apr 17, 2020
This fixes the situation where the user changed the configuration by themselves and
removed the path variable or changed its type to something other than string.

The previous check would only update the path is it was an empty string.
This way, any invalid path is overwritten.

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias merged commit 238578a into master Apr 17, 2020
@hacdias hacdias deleted the fix/write-path branch April 17, 2020 10:07
@hacdias hacdias mentioned this pull request Apr 17, 2020
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) P1 High: Likely tackled by core team if no one steps up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant