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 mapping credentials #239

Merged
merged 1 commit into from
Dec 31, 2019
Merged

Fix mapping credentials #239

merged 1 commit into from
Dec 31, 2019

Conversation

skiptomyliu
Copy link
Member

@skiptomyliu skiptomyliu commented Dec 30, 2019

The original if statement to check if there are credentials will never execute if a user deletes all credentials from a service. data.get('credentials') will always return false when the service returns an empty list. I think the original intention was to check that the key exists.

I've removed the if statement all together since data.get('credentials', []) will default to an empty list to check anyway.

@skiptomyliu skiptomyliu merged commit 9380e87 into master Dec 31, 2019
@ryan-lane ryan-lane deleted the hotfix-service-map-cred branch February 14, 2020 00:05
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