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

both statement have dupplicate bodies #8633

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

gulshanAI
Copy link
Contributor

Both statement contained same bodies

..
} else if (dataType === 'array' && paramValue) {
try {
params[paramKey] = JSON.parse(paramValue)
} catch (err) {
// Ignore malformed JSON
}
} else if (dataType === 'object' && paramValue) {
try {
params[paramKey] = JSON.parse(paramValue)
} catch (err) {
// Ignore malformed JSON
}
}
..

@gulshanAI
Copy link
Contributor Author

Both statement contained same bodies

@tomchristie
Copy link
Member

True. And yes, it's more readable this way.

@tomchristie tomchristie merged commit 11bfda9 into encode:master Sep 22, 2022
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
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