From 841facc85310dc8ef956917aa7e5dbd3334deaa1 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Thu, 3 Apr 2025 12:46:54 +0530 Subject: [PATCH] chore: fixed indentation --- .../src/utils/importers/postman-collection.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/bruno-app/src/utils/importers/postman-collection.js b/packages/bruno-app/src/utils/importers/postman-collection.js index 06fa5ef56..ade9b4759 100644 --- a/packages/bruno-app/src/utils/importers/postman-collection.js +++ b/packages/bruno-app/src/utils/importers/postman-collection.js @@ -126,11 +126,11 @@ const importScriptsFromEvents = (events, requestObject, options, pushTranslation if (Array.isArray(event.script.exec)) { if (event.script.exec.length > 0) { - requestObject.script.req = event.script.exec - .map((line, index) => - options.enablePostmanTranslations.enabled - ? postmanTranslation(line, () => pushTranslationLog('script', index)) - : `// ${line}` + requestObject.script.req = event.script.exec + .map((line, index) => + options.enablePostmanTranslations.enabled + ? postmanTranslation(line, () => pushTranslationLog('script', index)) + : `// ${line}` ) .join('\n'); } else { @@ -290,13 +290,13 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) = } if (Array.isArray(event.script.exec)) { if (event.script.exec.length > 0) { - brunoRequestItem.request.script.req = event.script.exec - .map((line, index) => - options.enablePostmanTranslations.enabled - ? postmanTranslation(line, () => pushTranslationLog('script', index)) - : `// ${line}` - ) - .join('\n'); + brunoRequestItem.request.script.req = event.script.exec + .map((line, index) => + options.enablePostmanTranslations.enabled + ? postmanTranslation(line, () => pushTranslationLog('script', index)) + : `// ${line}` + ) + .join('\n'); } else { brunoRequestItem.request.script.req = ''; }