From a04b634089d0e3f3cb0dff3f78e078b06201ed23 Mon Sep 17 00:00:00 2001 From: Rishabh Agarwal Date: Fri, 8 Apr 2022 11:15:39 +0530 Subject: [PATCH] refactor: removed unecessary const --- .../hoppscotch-app/helpers/import-export/import/openapi.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-app/helpers/import-export/import/openapi.ts b/packages/hoppscotch-app/helpers/import-export/import/openapi.ts index 7374c9b9a..7217ead0b 100644 --- a/packages/hoppscotch-app/helpers/import-export/import/openapi.ts +++ b/packages/hoppscotch-app/helpers/import-export/import/openapi.ts @@ -115,8 +115,10 @@ const parseOpenAPIV2Body = (op: OpenAPIV2.OperationObject): HoppRESTReqBody => { obj !== "multipart/form-data" && obj !== "application/x-www-form-urlencoded" ) { - const x = generateRequestBodyExampleFromOpenAPIV2Body(op) - return { contentType: obj as any, body: x } + return { + contentType: obj as any, + body: generateRequestBodyExampleFromOpenAPIV2Body(op), + } } const formDataValues = pipe(