refactor: destructuring assignment

This commit is contained in:
jamesgeorge007
2020-02-01 22:30:35 +05:30
parent 2b165a065c
commit ef434ca804

View File

@@ -1839,8 +1839,8 @@ export default {
return this.path.match(/^([^?]*)\??/)[1];
},
rawRequestBody() {
const { bodyParams } = this;
if (this.contentType === "application/json") {
const { bodyParams, contentType } = this;
if (contentType === "application/json") {
try {
const obj = JSON.parse(
`{${bodyParams