Skip to content

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

@lovelydinosaur
Copy link
Contributor

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

@lovelydinosaur lovelydinosaur 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